Skip to content

Commit

Permalink
Use codecov-action
Browse files Browse the repository at this point in the history
  • Loading branch information
SupinePandora43 committed Jul 13, 2023
1 parent dfa2bf6 commit 6581bfa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ jobs:
dotnet build -c Release src/UltralightNet.TestRunner/UltralightNet.TestRunner.csproj
coverlet src/UltralightNet.TestRunner/bin/Release/net6.0/UltralightNet.TestRunner.dll --target "dotnet" --targetargs "src/UltralightNet.TestRunner/bin/Release/net6.0/UltralightNet.TestRunner.dll" --format cobertura --format opencover
- name: Upload coverage
# if: matrix.os!='macos'
run: |
curl -s https://codecov.io/bash > codecov
chmod +x codecov
./codecov -f "src/UltralightNet.Test/TestResults/*/coverage.opencover.xml"
./codecov -f "src/UltralightNet.TestRunner/TestResults/*/coverage.opencover.xml"
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: src/UltralightNet.Test/TestResults/*/coverage.opencover.xml
fail_ci_if_error: true
verbose: true
- name: Benchmark
run: dotnet run -c Release --project src/Benchmarks/Benchmarks.csproj
continue-on-error: true # todo
Expand Down

0 comments on commit 6581bfa

Please sign in to comment.