Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuoza committed Nov 2, 2021
1 parent 9731262 commit 55c1c7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,4 @@ jobs:
run: go vet ./...

- name: go test
run: go test -v -covermode=count -coverprofile=coverage.out

- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.8
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls Parallel
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
flag-name: go-version-${{ matrix.go }}
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
run: go test -v
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: test
on:
push:
branches:
- '*'
- '!renovate/**'

jobs:
test:
Expand Down

0 comments on commit 55c1c7a

Please sign in to comment.