Skip to content

Commit

Permalink
env for cov dir with upload test results
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Dec 24, 2024
1 parent fec19c4 commit 41dd510
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-and-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ jobs:
- name: Install dependencies
run: go mod tidy

- name: Set GOCOVERDIR
run: echo "GOCOVERDIR=/home/runner/work/cosi-driver/cosi-driver" >> $GITHUB_ENV

- name: Run tests
run: make test

- name: Upload test coverage to codecov
uses: codecov/codecov-action@v5
env:
GOCOVERDIR: "/home/runner/work/cosi-driver/cosi-driver"
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: scality/cosi-driver
Expand Down

0 comments on commit 41dd510

Please sign in to comment.