From 7b17d901f969843743803fc3d34d4f3bcc1389eb Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Mon, 28 Jun 2021 12:27:03 +0300 Subject: [PATCH] Add test --- .github/workflows/workflow.yml | 20 ++++++++++++++++++++ src/setup-dotnet.ts | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 9ee782a..e8bb284 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -138,6 +138,26 @@ jobs: - name: Verify dotnet shell: pwsh run: __tests__/verify-dotnet.ps1 3.1 2.2 + + test-input: + runs-on: ${{ matrix.operating-system }} + strategy: + fail-fast: false + matrix: + operating-system: [ubuntu-latest, windows-latest, macOS-latest] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Clear toolcache + shell: pwsh + run: __tests__/clear-toolcache.ps1 ${{ runner.os }} + - name: Setup dotnet 3.1.* + uses: ./ + with: + dotnet-version: '["3.1.*", "5.0.*"]' + - name: Verify dotnet + shell: pwsh + run: __tests__/verify-dotnet.ps1 3.1 test-proxy: runs-on: ubuntu-latest diff --git a/src/setup-dotnet.ts b/src/setup-dotnet.ts index 7fe1248..20c1d03 100644 --- a/src/setup-dotnet.ts +++ b/src/setup-dotnet.ts @@ -14,7 +14,7 @@ export async function run() { // Proxy, auth, (etc) are still set up, even if no version is identified // let version = core.getInput('dotnet-version'); - console.log("VERSION: ", version); + console.log('VERSION: ', version); if (!version) { // Try to fall back to global.json core.debug('No version found, trying to find version from global.json');