Fix the CI #112
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Integration | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| push: | |
| branches: [ "releases/**" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET 8.x | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.x' | |
| - name: Restore dependencies | |
| run: dotnet restore PosInformatique.Moq.Analyzers.slnx | |
| - name: Build solution | |
| run: | | |
| dotnet build PosInformatique.Moq.Analyzers.slnx \ | |
| --configuration Release \ | |
| --no-restore | |
| - name: Run tests (.NET 10.0) | |
| run: | | |
| dotnet test \ | |
| --solution PosInformatique.Moq.Analyzers.slnx \ | |
| --configuration Release \ | |
| --no-build \ | |
| --coverage \ | |
| --coverage-output-format cobertura \ | |
| --coverage-settings CodeCoverage.runsettings \ | |
| --report-trx \ | |
| --results-directory ./TestResults | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: (!cancelled()) | |
| with: | |
| files: | | |
| TestResults/**/*.trx |