Skip to content

Commit

Permalink
Add more comprehensive testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-laevskii committed May 30, 2023
1 parent c2bd231 commit ee94c5a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,24 +373,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 }}$"

0 comments on commit ee94c5a

Please sign in to comment.