Skip to content

Commit

Permalink
Test code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tsipinakis committed Jul 22, 2023
1 parent 25193a8 commit a76e757
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Run go test
run: |
set -euo pipefail
go test -json -p 1 -v ./... 2>&1 | tee /tmp/gotest.log
go test -coverprofile=coverage.txt -covermode=atomic -json -p 1 -v ./... 2>&1 | tee /tmp/gotest.log
- name: Format log output
if: always()
run: |
Expand All @@ -100,3 +100,7 @@ jobs:
name: test-log
path: /tmp/gotest.log
if-no-files-found: error
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit a76e757

Please sign in to comment.