Skip to content

feat: update .NET SDK support to include versions 8.0, 9.0, and 10.0;… #70

feat: update .NET SDK support to include versions 8.0, 9.0, and 10.0;…

feat: update .NET SDK support to include versions 8.0, 9.0, and 10.0;… #70

Workflow file for this run

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' }}