Exclude broken analyzers in build script #150
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: Build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: Build ${{ matrix.os }} | |
| runs-on: '${{ matrix.os }}' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| dotnet-quality: 'ga' | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Check code formatting | |
| run: dotnet format --no-restore --verify-no-changes --exclude-diagnostics IDE0051 IDE0052 | |
| - name: Build | |
| run: dotnet build --no-restore | |
| - name: Run tests | |
| run: dotnet test --output Detailed --no-build --no-progress --max-parallel-test-modules 1 | |
| working-directory: test/TinyLogger.Tests |