Skip to content

Commit

Permalink
ci: codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Jan 29, 2024
1 parent 4191699 commit e2b6d0b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,9 @@ jobs:

- name: checkout
uses: actions/checkout@v3
with:
path: 'csharp-driver'

- name: Restore dependencies
run: |
cd csharp-driver
echo `pwd`
ls -al
dotnet restore
Expand All @@ -237,5 +233,15 @@ jobs:

- name: test
run: |
cd csharp-driver
sudo dotnet test --logger "console;verbosity=detailed"
sudo dotnet test --logger "console;verbosity=detailed" --collect:"XPlat Code Coverage" --results-directory:./testresults
- name: Upload coverage to Codecov
if: ${{ matrix.go }} == 'stable'
run: |
COVERAGE_FILES=$(find ./testresults -name 'coverage.cobertura.xml' -exec printf "%s;" {} +)
COVERAGE_FILES=${COVERAGE_FILES%;}
uses: codecov/codecov-action@v4-beta
with:
files: $COVERAGE_FILES
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}

0 comments on commit e2b6d0b

Please sign in to comment.