Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guptarohit committed Jan 29, 2022
1 parent 09beb53 commit e266f5e
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,30 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: go test -race -covermode atomic -coverprofile=covprofile ./.
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: covprofile
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github

# - name: Run tests
# run: go test -race -covermode atomic -coverprofile=covprofile ./.
# - name: Send coverage
# uses: shogo82148/actions-goveralls@v1
# with:
# path-to-profile: covprofile
# flag-name: Go-${{ matrix.go }}
# parallel: true

# notifies that all test jobs are finished.
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
# # notifies that all test jobs are finished.
# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - uses: shogo82148/actions-goveralls@v1
# with:
# parallel-finished: true

0 comments on commit e266f5e

Please sign in to comment.