Fix FeatureChecker agent commands #16
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| DOTNET_VERSION: 10.0.x | |
| SOLUTION: ManagedCode.FeatureChecker.slnx | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Restore dependencies | |
| run: dotnet restore ${{ env.SOLUTION }} | |
| - name: Verify formatting | |
| run: dotnet format ${{ env.SOLUTION }} --verify-no-changes | |
| - name: Build | |
| run: dotnet build ${{ env.SOLUTION }} --configuration Release --no-restore | |
| - name: Analyze | |
| run: dotnet build ${{ env.SOLUTION }} --configuration Release --no-restore -p:RunAnalyzers=true | |
| - name: Test | |
| run: dotnet test --solution ${{ env.SOLUTION }} --configuration Release --no-restore --verbosity normal | |
| - name: Coverage | |
| run: dotnet test --solution ${{ env.SOLUTION }} --configuration Release --no-build --verbosity normal -- --coverage --coverage-output-format cobertura | |
| - name: Upload test artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: | | |
| **/TestResults/** | |
| if-no-files-found: ignore |