Skip to content

Commit

Permalink
Run CI/CD only in Release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergHoffmannatGitHub committed Jan 31, 2024
1 parent 59844be commit 861a3f6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
build:

strategy:
matrix:
configuration: [Debug, Release]

runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
Expand Down Expand Up @@ -42,15 +40,11 @@ jobs:

# Build the application
- name: Build the application
run: dotnet build $env:Solution_Name --configuration $env:Configuration --no-restore
env:
Configuration: ${{ matrix.configuration }}
run: dotnet build $env:Solution_Name --configuration Release --no-restore

# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test --configuration $env:Configuration --no-build --logger GitHubActions '/p:CollectCoverage=true;CoverletOutputFormat=\"json,lcov,cobertura,opencover\";MergeWith=${{github.workspace}}/coverage.json;CoverletOutput=${{github.workspace}}/coverage' -- RunConfiguration.CollectSourceInformation=true
env:
Configuration: ${{ matrix.configuration }}
run: dotnet test --configuration Release --no-build --logger GitHubActions '/p:CollectCoverage=true;CoverletOutputFormat=\"json,lcov,cobertura,opencover\";MergeWith=${{github.workspace}}/coverage.json;CoverletOutput=${{github.workspace}}/coverage' -- RunConfiguration.CollectSourceInformation=true

# Archive the package
- name: Create archive
Expand Down

0 comments on commit 861a3f6

Please sign in to comment.