Skip to content

Commit

Permalink
Use goveralls action
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Jul 31, 2020
1 parent d35f4b6 commit d38c432
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- name: Check out code into the Go module directory
- name: Check out code
uses: actions/checkout@v2

- name: Get dependencies
- name: Fetch dependencies
run: |
go get -v -t -d ./...
Expand Down Expand Up @@ -52,8 +52,23 @@ jobs:
godacov -r coverage.out -t ${{ secrets.CODACY_TOKEN }} -c ${{ github.sha }}
- name: Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
go install github.com/mattn/goveralls
goveralls -coverprofile coverage.out -service github
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
flag-name: Go-${{ matrix.go }}
parallel: true

# - name: Coveralls
# env:
# COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# run: |
# go install github.com/mattn/goveralls
# goveralls -coverprofile coverage.out -service github

finish:
needs: test
runs-on: macos-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true

0 comments on commit d38c432

Please sign in to comment.