From 8257657d145f76c8fdc69406060114fb9812f130 Mon Sep 17 00:00:00 2001 From: Havret Date: Thu, 24 Mar 2022 20:11:35 +0100 Subject: [PATCH] Run CI on multiple dotnet versions on different os --- .github/workflows/build.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ce3fb7..d30dca8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,26 +9,18 @@ on: - main jobs: - linux: + ci: + strategy: + matrix: + dotnet: ['5.0.x', "6.0.x"] runs-on: ubuntu-latest + name: CI using dotnet ${{ matrix.dotnet }} steps: - uses: actions/checkout@v1 - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: "6.0.x" - - name: Build with dotnet - run: dotnet build --configuration Release - - name: Test with dotnet - run: dotnet test --configuration Release - windows: - runs-on: windows-latest - steps: - - uses: actions/checkout@v1 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: "6.0.x" + dotnet-version: ${{ matrix.dotnet }} - name: Build with dotnet run: dotnet build --configuration Release - name: Test with dotnet