From 6581bfa025ca1939ef1d095b7cc87e838ec87515 Mon Sep 17 00:00:00 2001 From: SupinePandora43 Date: Thu, 13 Jul 2023 20:15:15 +0500 Subject: [PATCH] Use codecov-action --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed4c7dcad..045fa8707 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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