feat: update .NET SDK support to include versions 8.0, 9.0, and 10.0;… #71
Workflow file for this run
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: pr | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: ["trunk"] | |
| pull_request: | |
| branches: ["trunk"] | |
| workflow_dispatch: | |
| jobs: | |
| build_and_test_linux: | |
| name: Build and test ubuntu-latest - .NET ${{matrix.dotnet-version}} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| dotnet-version: ['8.0.x', '9.0.x', '10.0.x'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release | |
| - name: Test | |
| env: | |
| API_KEY: ${{ secrets.SPICE_CLOUD_API_KEY }} | |
| run: dotnet test --no-build --verbosity normal --configuration Release --framework ${{ matrix.dotnet-version == '8.0.x' && 'net8.0' || matrix.dotnet-version == '9.0.x' && 'net9.0' || 'net10.0' }} | |
| build_and_test_windows_mac: | |
| name: Build and test ${{matrix.os}} - .NET ${{matrix.dotnet-version}} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: windows-2022 | |
| dotnet-version: '8.0.x' | |
| - os: windows-2022 | |
| dotnet-version: '9.0.x' | |
| - os: windows-2022 | |
| dotnet-version: '10.0.x' | |
| - os: windows-latest | |
| dotnet-version: '8.0.x' | |
| - os: windows-latest | |
| dotnet-version: '9.0.x' | |
| - os: windows-latest | |
| dotnet-version: '10.0.x' | |
| - os: macos-latest | |
| dotnet-version: '9.0.x' | |
| - os: macos-latest | |
| dotnet-version: '10.0.x' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release | |
| - name: Test | |
| continue-on-error: ${{ startsWith(matrix.os, 'macos') }} | |
| env: | |
| API_KEY: ${{ secrets.SPICE_CLOUD_API_KEY }} | |
| run: dotnet test --no-build --verbosity normal --configuration Release --framework ${{ matrix.dotnet-version == '8.0.x' && 'net8.0' || matrix.dotnet-version == '9.0.x' && 'net9.0' || 'net10.0' }} |