diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml index 862a6a9..9adc4e4 100644 --- a/.github/workflows/dotnet-test.yml +++ b/.github/workflows/dotnet-test.yml @@ -11,27 +11,31 @@ on: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + dotnet: [ + { tfm: net8.0, version: 8.0.x }, + { tfm: net9.0, version: 9.0.x }, + ] + steps: - uses: actions/checkout@v4 - - name: Setup .NET 8.0 - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Setup .NET 9.0 + - name: Setup .NET 9.0 # Latest dotnet version supported uses: actions/setup-dotnet@v4 with: dotnet-version: 9.0.x + - name: Display dotnet version + run: dotnet --version + - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore + run: dotnet build --no-restore --framework ${{ matrix.dotnet.tfm }} - name: Test - run: dotnet test --no-build --verbosity normal + run: dotnet test --no-build --verbosity normal --framework ${{ matrix.dotnet.tfm }}