Merge pull request #911 from Romfos/actions #134
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, Test, and Format verification | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macOS-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 9.0.x | |
| 8.0.x | |
| - name: Build | |
| run: dotnet build | |
| - name: .NET Framework Tests | |
| if: matrix.os == 'windows-latest' | |
| run: dotnet test -f net462 --no-build --no-restore | |
| - name: .NET 8 Tests | |
| run: dotnet test -f net8.0 --no-build --no-restore | |
| - name: .NET 9 Tests | |
| run: dotnet test -f net9.0 --no-build --no-restore | |
| format-verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Format | |
| run: dotnet format --verify-no-changes |