Submit data to CodeCov only if actor has access to token secrets

This commit is contained in:
Alexander Todorov 2024-04-30 14:42:33 +03:00 committed by Alexander Todorov
parent 75a80c9625
commit 8dece19342

View file

@ -36,9 +36,13 @@ jobs:
run: go test -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=$(go list ./... | grep -v rpmmd/test$ | tr "\n" ",") ./...
- uses: codecov/codecov-action@v4
if: env.CODECOV_TOKEN
with:
fail_ci_if_error: false
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
db-tests:
name: "🗄 DB tests"