From 07be99e939b585febc0291ecfd945dfc18e1196c Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Mon, 4 Sep 2023 04:05:45 +0200 Subject: [PATCH] Add additional e2e test --- .github/workflows/test-dotnet.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/test-dotnet.yml b/.github/workflows/test-dotnet.yml index c073af9..a45bce3 100644 --- a/.github/workflows/test-dotnet.yml +++ b/.github/workflows/test-dotnet.yml @@ -66,3 +66,24 @@ jobs: - name: List installed versions shell: pwsh run: dotnet --list-sdks + setup-version-already-installed: + 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 }} + - name: Setup dotnet 6.0 + uses: ./ + with: + dotnet-version: '6.0' + prefer-installed: true + - name: Verify installed version + shell: pwsh + run: | + __tests__/verify-dotnet.ps1 -Patterns "^6.0"