From 0252dd8168fd162f089b3fdb89f734efd2551ae8 Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Fri, 12 May 2023 18:03:16 +0200 Subject: [PATCH 1/2] Add tests for sequential version installation --- .github/workflows/e2e-tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 9963bbc97..8ca6c14ca 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -320,3 +320,31 @@ jobs: - name: Verify dotnet shell: pwsh run: __tests__/verify-dotnet.ps1 -Patterns "^3.1.201$" -CheckNugetConfig + + test-sequential-version-installation: + runs-on: ${{ matrix.operating-system }} + strategy: + fail-fast: false + matrix: + operating-system: [ubuntu-latest, windows-latest, macOS-latest] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Clear toolcache + shell: pwsh + run: __tests__/clear-toolcache.ps1 ${{ runner.os }} + # Install one version, use it for something, then switch to next version + - name: Setup dotnet 2.2.402 + uses: ./ + with: + dotnet-version: 2.2.402 + - name: Verify dotnet 2.2.402 + shell: pwsh + run: __tests__/verify-dotnet.ps1 -Patterns "^2.2.402$" + - name: Setup dotnet 7.0.203 + uses: ./ + with: + dotnet-version: 7.0.203 + - name: Verify dotnet 7.0.203 + shell: pwsh + run: __tests__/verify-dotnet.ps1 -Patterns "^7.0.203$" From 74203da1204f11badcacc7c8f33d01c4b82b2580 Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Fri, 12 May 2023 18:40:23 +0200 Subject: [PATCH 2/2] Fix e2e test patterns --- .github/workflows/e2e-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 8ca6c14ca..17c9bf1b3 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -347,4 +347,4 @@ jobs: dotnet-version: 7.0.203 - name: Verify dotnet 7.0.203 shell: pwsh - run: __tests__/verify-dotnet.ps1 -Patterns "^7.0.203$" + run: __tests__/verify-dotnet.ps1 -Patterns "^2.2.402$", "^7.0.203$"