diff --git a/.github/workflows/dotnet-windows.yml b/.github/workflows/dotnet-windows.yml index e737a9e..9508202 100644 --- a/.github/workflows/dotnet-windows.yml +++ b/.github/workflows/dotnet-windows.yml @@ -1,4 +1,4 @@ -name: .NET +name: .NET Windows on: push: @@ -8,18 +8,16 @@ on: jobs: build: - runs-on: windows-latest - + strategy: + matrix: + dotnet-version: [ '3.0', '3.1.x', '5.0.x' ] steps: - - uses: actions/checkout@v3 - - name: Setup .NET - uses: actions/setup-dotnet@v2 - with: - dotnet-version: 5.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + - uses: actions/checkout@v3 + - name: Setup dotnet ${{ matrix.dotnet-version }} + uses: actions/setup-dotnet@v2 + with: + dotnet-version: ${{ matrix.dotnet-version }} + # You can test your matrix by printing the current dotnet version + - name: Display dotnet version + run: dotnet --version