Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with multiple versions #13

Closed
wants to merge 14 commits into from
Closed
Prev Previous commit
Next Next commit
Add more comprehensive testing
nikolai-laevskii committed May 12, 2023
commit 6a20211df42526f5639b050264aab3225e5f21c2
18 changes: 10 additions & 8 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -327,24 +327,26 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
lower-version: ['2.2.402', '3.0.103', '3.1.426', '6.0.408', '7.0.100']
higher-version: ['6.0.408', '7.0.203']
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
- name: Setup dotnet (lower version)
uses: ./
with:
dotnet-version: 2.2.402
- name: Verify dotnet 2.2.402
dotnet-version: ${{ matrix.lower-version }}
- name: Verify dotnet (lower version)
shell: pwsh
run: __tests__/verify-dotnet.ps1 -Patterns "^2.2.402$"
- name: Setup dotnet 7.0.203
run: __tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.lower-version }}$"
- name: Setup dotnet (higher version)
uses: ./
with:
dotnet-version: 7.0.203
- name: Verify dotnet 7.0.203
dotnet-version: ${{ matrix.higher-version }}
- name: Verify dotnet (higher version)
shell: pwsh
run: __tests__/verify-dotnet.ps1 -Patterns "^7.0.203$"
run: __tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.higher-version }}$"