Skip to content

Commit

Permalink
Update test commands and Codecov action in CI configs
Browse files Browse the repository at this point in the history
Updated `develop-build.yml` and `master-build.yml`:
- Added `-m` option to `dotnet test` command.
- Upgraded Codecov action from `v3` to `v5`.
- Added `fail_ci_if_error: false` and `token: ${{ secrets.CODECOV_TOKEN }}` to Codecov action.

Updated `publish-nuget.yml`:
- Added `-m` option to `dotnet test` command.
  • Loading branch information
Afischbacher committed Feb 24, 2025
1 parent 309dbb1 commit 0b666f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/develop-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
9 changes: 6 additions & 3 deletions .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b666f2

Please sign in to comment.