Skip to content

Commit

Permalink
deps(ci): bump codecov/codecov-action from 3 to 4 (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielNagy authored Feb 9, 2024
2 parents 70e090b + 5fdfffe commit 17468b3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,19 @@ jobs:
sudo -E $(which go) test -coverpkg=./... -coverprofile=/tmp/coverage.sudo.out -covermode=set $SUDO_PACKAGES
# Combine coverage files, and filter out test utilities and generated files
grep -hv -e "testutils" -e "pb.go:" -e "/e2e/" /tmp/coverage.out /tmp/coverage.sudo.out > /tmp/coverage.combined.out
cod_cov_dir="$(pwd)/coverage/codecov"
mkdir -p "${cod_cov_dir}"
grep -hv -e "testutils" -e "pb.go:" -e "/e2e/" /tmp/coverage.out /tmp/coverage.sudo.out > "${cod_cov_dir}/coverage.combined.out"
- name: Run tests (with race detector)
run: |
go test -race ./...
# Use command substitution to preserve go binary path (sudo does not preserve path even with -E)
sudo -E $(which go) test -race ${{ env.sudo_packages }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: /tmp/coverage.combined.out
directory: ./coverage/codecov
token: ${{ secrets.CODECOV_TOKEN }}

adwatchd-tests:
name: Windows tests for adwatchd
Expand Down

0 comments on commit 17468b3

Please sign in to comment.