Skip to content

Commit

Permalink
ci: added test coverage upload to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed Feb 3, 2021
1 parent 8722bc9 commit 4192a70
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,24 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: ginkgo -cover ./...
run: ginkgo -cover ./...
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
with:
go-version: 1.15.x
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
run: |
ginkgo -cover -outputdir=./ -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.6
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov

0 comments on commit 4192a70

Please sign in to comment.