From 94a7263f2e9ab0db2d6d72e73d2d94ae6a51b94c Mon Sep 17 00:00:00 2001 From: smacadam <67597111+smacadam@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:15:52 -0500 Subject: [PATCH] Testing multiple dotnet versions --- .github/workflows/bfdr-test.yml | 42 +++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/.github/workflows/bfdr-test.yml b/.github/workflows/bfdr-test.yml index b3ddbc5e..dc731fbd 100644 --- a/.github/workflows/bfdr-test.yml +++ b/.github/workflows/bfdr-test.yml @@ -34,19 +34,35 @@ jobs: dotnet-version: [6.0.100] permissions: write-all steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ matrix.dotnet-version }} - - name: Install dependencies - run: dotnet restore bfdr-dotnet.sln - - name: Build - run: dotnet build bfdr-dotnet.sln --configuration Release --no-restore - - name: Test CLI commands - run: ./BFDR.Tests/run_tests.sh - - name: Test - run: dotnet test bfdr-dotnet.sln + # - uses: actions/checkout@v4 + # - name: Setup .NET + # uses: actions/setup-dotnet@v4 + # with: + # dotnet-version: ${{ matrix.dotnet-version }} + - uses: actions/checkout@v3 + - name: Setup .NET Core 2.1 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 2.1.815 + - name: Setup .NET Core 3.1 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 3.1.408 + - name: Setup .NET Core 6.0 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.100 + - name: .net Side by Side + run: | + rsync -a ${DOTNET_ROOT/3.1.408/2.1.815}/* $DOTNET_ROOT/ + - name: Install dependencies + run: dotnet restore bfdr-dotnet.sln + - name: Build + run: dotnet build bfdr-dotnet.sln --configuration Release --no-restore + - name: Test CLI commands + run: ./BFDR.Tests/run_tests.sh + - name: Test + run: dotnet test bfdr-dotnet.sln coverage: runs-on: ubuntu-latest defaults: