Skip to content

Commit

Permalink
build: update go workflow to update the coverage to CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijamt committed Oct 7, 2023
1 parent cf10386 commit 15855ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ jobs:
- name: Test
run: |
export VAULT_ADDR="http://$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -q)):8200"
go test -v -json ./... | tee -a go-test-${{ matrix.go }}.json
go test -cover -coverprofile=coverage.out -v ./...
env:
VAULT_TOKEN: token
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.out
flags: unittests

0 comments on commit 15855ba

Please sign in to comment.