diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b0aeb41..1d553bf 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -39,16 +39,16 @@ jobs: uses: actions/checkout@v2 - name: Clear tool cache run: mv "${{ runner.tool_cache }}" "${{ runner.tool_cache }}.old" - - name: Setup dotnet 3.0.100 + - name: Setup dotnet 3.1.201 uses: ./ with: - dotnet-version: 3.0.100 + dotnet-version: 3.1.201 - name: Verify dotnet if: runner.os != 'windows' - run: __tests__/verify-dotnet.sh 3.0.100 + run: __tests__/verify-dotnet.sh 3.1.201 - name: Verify dotnet (Windows) if: runner.os == 'windows' - run: __tests__/verify-dotnet.ps1 3.0.100 + run: __tests__/verify-dotnet.ps1 3.1.201 test-proxy: runs-on: ubuntu-latest @@ -67,12 +67,12 @@ jobs: uses: actions/checkout@v2 - name: Clear tool cache run: rm -rf $RUNNER_TOOL_CACHE/* - - name: Setup dotnet 3.0.100 + - name: Setup dotnet 3.1.201 uses: ./ with: - dotnet-version: 3.0.100 + dotnet-version: 3.1.201 - name: Verify dotnet - run: __tests__/verify-dotnet.sh 3.0.100 + run: __tests__/verify-dotnet.sh 3.1.201 test-bypass-proxy: runs-on: ubuntu-latest @@ -84,9 +84,9 @@ jobs: uses: actions/checkout@v2 - name: Clear tool cache run: mv "${{ runner.tool_cache }}" "${{ runner.tool_cache }}.old" - - name: Setup dotnet 3.0.100 + - name: Setup dotnet 3.1.201 uses: ./ with: - dotnet-version: 3.0.100 + dotnet-version: 3.1.201 - name: Verify dotnet - run: __tests__/verify-dotnet.sh 3.0.100 + run: __tests__/verify-dotnet.sh 3.1.201 diff --git a/README.md b/README.md index ea327fd..13983bd 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ steps: - uses: actions/checkout@master - uses: actions/setup-dotnet@v1 with: - dotnet-version: '3.1.100' # SDK Version to use. + dotnet-version: '3.1.201' # SDK Version to use. - run: dotnet build ``` @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-16.04 strategy: matrix: - dotnet: [ '2.2.103', '3.0.100', '3.1.100' ] + dotnet: [ '2.2.103', '3.1.201' ] name: Dotnet ${{ matrix.dotnet }} sample steps: - uses: actions/checkout@master @@ -49,7 +49,7 @@ steps: # Authenticates packages to push to GPR - uses: actions/setup-dotnet@v1 with: - dotnet-version: '3.1.100' # SDK Version to use. + dotnet-version: '3.1.201' # SDK Version to use. source-url: https://nuget.pkg.github.com//index.json env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index 8fcb569..f93a503 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -29,8 +29,8 @@ describe('installer tests', () => { }, 30000); it('Acquires version of dotnet if no matching version is installed', async () => { - await getDotnet('3.1.100'); - expect(fs.existsSync(path.join(toolDir, 'sdk', '3.1.100'))).toBe(true); + await getDotnet('3.1.201'); + expect(fs.existsSync(path.join(toolDir, 'sdk', '3.1.201'))).toBe(true); if (IS_WINDOWS) { expect(fs.existsSync(path.join(toolDir, 'dotnet.exe'))).toBe(true); } else { diff --git a/__tests__/setup-dotnet.test.ts b/__tests__/setup-dotnet.test.ts index 398ae14..d7be6e4 100644 --- a/__tests__/setup-dotnet.test.ts +++ b/__tests__/setup-dotnet.test.ts @@ -31,13 +31,13 @@ describe('setup-dotnet tests', () => { it('Acquires version of dotnet if no matching version is installed', async () => { const globalJsonPath = path.join(process.cwd(), 'global.json'); - const jsonContents = `{${os.EOL}"sdk": {${os.EOL}"version": "3.1.100"${os.EOL}}${os.EOL}}`; + const jsonContents = `{${os.EOL}"sdk": {${os.EOL}"version": "3.1.201"${os.EOL}}${os.EOL}}`; if (!fs.existsSync(globalJsonPath)) { fs.writeFileSync(globalJsonPath, jsonContents); } await setup.run(); - expect(fs.existsSync(path.join(toolDir, 'sdk', '3.1.100'))).toBe(true); + expect(fs.existsSync(path.join(toolDir, 'sdk', '3.1.201'))).toBe(true); if (IS_WINDOWS) { expect(fs.existsSync(path.join(toolDir, 'dotnet.exe'))).toBe(true); } else {