diff --git a/.github/workflows/develop-build.yml b/.github/workflows/develop-build.yml index cd80a4c..b0d1eda 100644 --- a/.github/workflows/develop-build.yml +++ b/.github/workflows/develop-build.yml @@ -19,6 +19,9 @@ jobs: - name: Build run: dotnet build --no-restore --configuration Release - name: Run Tests - run: dotnet test --configuration Release --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover - - name: Upload coverage reports to Codecov with GitHub Action - uses: codecov/codecov-action@v3 + run: dotnet test -m --configuration Release --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/master-build.yml b/.github/workflows/master-build.yml index 99fd3ce..5af3fa7 100644 --- a/.github/workflows/master-build.yml +++ b/.github/workflows/master-build.yml @@ -18,6 +18,9 @@ jobs: - name: Build run: dotnet build --no-restore --configuration Release - name: Run Tests - run: dotnet test --configuration Release --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover - - name: Upload coverage reports to Codecov with GitHub Action - uses: codecov/codecov-action@v3 + run: dotnet test -m --configuration Release --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index abee5a3..e8f1dc7 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -19,6 +19,6 @@ jobs: - name: Build run: dotnet build --no-restore --configuration Release - name: Run Tests - run: dotnet test + run: dotnet test -m - name: Deploy NuGet Package run: dotnet nuget push ../../Nhl.Api/Nhl.Api/Nhl.Api/bin/Release/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json