Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhashubham95 committed Jan 2, 2021
1 parent f3ca3a8 commit 8cb9c7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,22 @@ jobs:
dep ensure
fi
- name: Run tests
run: go test -v -covermode=count
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.1.2
run: go test -v -coverprofile=profile.cov ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
github-token: ${{ secrets.COVERALLS_TOKEN }}
flag-name: ${{ matrix.platform }}-node-${{ matrix.go-version }}
flag-name: ${{ matrix.platform }}-go-${{ matrix.go-version }}
parallel: true

finish:
name: Finish
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v1.1.2
- name: Sending coverage finished
uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.COVERALLS_TOKEN }}
parallel-finished: true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.cov

0 comments on commit 8cb9c7b

Please sign in to comment.