2022-12-20 23:24:40 +08:00
|
|
|
name: e2e tests
|
2020-01-26 14:37:54 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2021-02-03 15:59:17 +08:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2020-01-26 14:37:54 +08:00
|
|
|
push:
|
|
|
|
branches:
|
2020-07-16 01:00:26 +08:00
|
|
|
- main
|
2020-01-26 14:37:54 +08:00
|
|
|
- releases/*
|
2021-02-03 15:59:17 +08:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2020-01-26 14:37:54 +08:00
|
|
|
|
2019-07-12 04:22:28 +08:00
|
|
|
jobs:
|
2021-11-23 18:03:56 +08:00
|
|
|
test-setup-multiple-versions:
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-01 21:48:47 +08:00
|
|
|
uses: actions/checkout@v3
|
2021-11-23 18:03:56 +08:00
|
|
|
- name: Clear toolcache
|
|
|
|
shell: pwsh
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
2023-05-15 20:09:29 +08:00
|
|
|
- name: Setup dotnet 2.2.402, 3.1.404 and 3.0.x
|
2021-11-23 18:03:56 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: |
|
2022-07-25 11:07:37 +08:00
|
|
|
2.2.402
|
|
|
|
3.1.404
|
|
|
|
3.0.x
|
2021-11-23 18:03:56 +08:00
|
|
|
- name: Verify dotnet
|
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^2.2.402$", "^3.1.404$", "^3.0"
|
2019-07-12 04:22:28 +08:00
|
|
|
|
2021-02-04 14:27:28 +08:00
|
|
|
test-setup-full-version:
|
2020-01-26 14:37:54 +08:00
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
2020-09-16 00:36:09 +08:00
|
|
|
fail-fast: false
|
2020-01-26 14:37:54 +08:00
|
|
|
matrix:
|
2021-02-04 23:26:17 +08:00
|
|
|
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
2020-01-26 14:37:54 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-01 21:48:47 +08:00
|
|
|
uses: actions/checkout@v3
|
2021-02-04 14:19:10 +08:00
|
|
|
- name: Clear toolcache
|
2021-02-03 19:37:15 +08:00
|
|
|
shell: pwsh
|
2021-02-04 14:19:10 +08:00
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
2020-09-16 00:36:09 +08:00
|
|
|
# Side-by-side install of 2.2 and 3.1 used for the test project
|
|
|
|
- name: Setup dotnet 2.2.402
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: 2.2.402
|
|
|
|
- name: Setup dotnet 3.1.201
|
2020-01-26 14:37:54 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2020-09-16 00:36:09 +08:00
|
|
|
dotnet-version: 3.1.201
|
2022-09-27 20:47:12 +08:00
|
|
|
# We are including this variable to force the generation of the nuget config file to verify that it is created in the correct place
|
2020-09-03 02:11:56 +08:00
|
|
|
source-url: https://api.nuget.org/v3/index.json
|
|
|
|
env:
|
|
|
|
NUGET_AUTH_TOKEN: NOTATOKEN
|
2020-01-26 14:37:54 +08:00
|
|
|
- name: Verify dotnet
|
2021-02-04 16:43:20 +08:00
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^3.1.201$", "^2.2.402$" -CheckNugetConfig
|
2020-09-24 23:26:00 +08:00
|
|
|
|
2021-02-04 14:27:28 +08:00
|
|
|
test-setup-without-patch-version:
|
2021-02-04 14:19:10 +08:00
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-02-04 23:26:17 +08:00
|
|
|
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
2021-02-04 14:19:10 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-01 21:48:47 +08:00
|
|
|
uses: actions/checkout@v3
|
2021-02-04 14:19:10 +08:00
|
|
|
- name: Clear toolcache
|
2021-02-03 20:40:37 +08:00
|
|
|
shell: pwsh
|
2021-02-04 14:19:10 +08:00
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
# 2.0, 3.0, 5.0 needs to be in single quotes to interpret as a string instead of as an integer
|
2021-02-03 20:40:37 +08:00
|
|
|
- name: Setup dotnet '3.1'
|
2020-09-24 23:26:00 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2021-02-03 20:40:37 +08:00
|
|
|
dotnet-version: '3.1'
|
2021-02-04 16:49:04 +08:00
|
|
|
- name: Setup dotnet '2.2'
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: '2.2'
|
2021-02-03 20:40:37 +08:00
|
|
|
- name: Verify dotnet
|
2021-02-04 16:43:20 +08:00
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^3.1", "^2.2"
|
2022-07-25 11:07:37 +08:00
|
|
|
|
2022-09-27 20:47:12 +08:00
|
|
|
test-setup-prerelease-version:
|
|
|
|
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 '3.1.100-preview1-014459'
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: '3.1.100-preview1-014459'
|
|
|
|
- name: Verify dotnet
|
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "3.1.100-preview1-014459"
|
2022-09-27 20:47:12 +08:00
|
|
|
|
2021-02-04 19:33:49 +08:00
|
|
|
test-setup-latest-patch-version:
|
2021-02-04 14:19:10 +08:00
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-02-04 23:26:17 +08:00
|
|
|
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
2021-02-04 14:19:10 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-01 21:48:47 +08:00
|
|
|
uses: actions/checkout@v3
|
2021-02-04 14:19:10 +08:00
|
|
|
- name: Clear toolcache
|
2021-02-03 20:54:50 +08:00
|
|
|
shell: pwsh
|
2021-02-04 14:19:10 +08:00
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
2021-02-03 20:54:50 +08:00
|
|
|
- name: Setup dotnet 3.1.x
|
2020-09-24 23:26:00 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2021-02-03 20:54:50 +08:00
|
|
|
dotnet-version: 3.1.x
|
2022-09-27 20:47:12 +08:00
|
|
|
- name: Setup dotnet 2.2.X
|
2021-02-04 16:49:04 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2022-09-27 20:47:12 +08:00
|
|
|
dotnet-version: 2.2.X
|
2021-02-03 20:54:50 +08:00
|
|
|
- name: Verify dotnet
|
2021-02-04 16:49:04 +08:00
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^2.2", "^3.1"
|
2020-09-24 23:26:00 +08:00
|
|
|
|
2023-05-18 17:11:51 +08:00
|
|
|
test-ABCxx-syntax:
|
|
|
|
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.4xx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: '6.0.4xx'
|
|
|
|
- name: Verify dotnet
|
|
|
|
shell: pwsh
|
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^6\.0\.4\d{2}"
|
|
|
|
|
2021-02-04 14:27:28 +08:00
|
|
|
test-setup-with-wildcard:
|
2021-02-04 14:19:10 +08:00
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-02-04 23:26:17 +08:00
|
|
|
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
2021-02-04 14:19:10 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-01 21:48:47 +08:00
|
|
|
uses: actions/checkout@v3
|
2021-02-04 14:19:10 +08:00
|
|
|
- name: Clear toolcache
|
2021-02-03 21:10:28 +08:00
|
|
|
shell: pwsh
|
2021-02-04 14:19:10 +08:00
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
2021-02-03 21:18:47 +08:00
|
|
|
- name: Setup dotnet 3.1.*
|
2020-09-24 23:26:00 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2021-02-03 21:18:47 +08:00
|
|
|
dotnet-version: 3.1.*
|
2021-02-04 16:49:04 +08:00
|
|
|
- name: Setup dotnet 2.2.*
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: 2.2.*
|
2021-02-03 21:10:28 +08:00
|
|
|
- name: Verify dotnet
|
2021-02-04 16:49:04 +08:00
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^3.1", "^2.2"
|
2021-02-03 21:18:47 +08:00
|
|
|
|
2022-04-18 20:25:56 +08:00
|
|
|
test-setup-global-json-specified-and-version:
|
|
|
|
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: Write global.json
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir subdirectory
|
2023-04-13 23:28:59 +08:00
|
|
|
echo '{"sdk":{"version": "2.2.207","rollForward": "latestFeature"}}' > ./subdirectory/global.json
|
2022-04-18 20:25:56 +08:00
|
|
|
- name: Setup dotnet
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: 3.1
|
|
|
|
global-json-file: ./subdirectory/global.json
|
|
|
|
- name: Verify dotnet
|
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^2.2", "^3.1"
|
2022-04-18 20:25:56 +08:00
|
|
|
|
2023-05-18 17:11:51 +08:00
|
|
|
test-setup-global-json-only:
|
2023-03-09 20:43:05 +08:00
|
|
|
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 }}
|
2023-05-18 17:11:51 +08:00
|
|
|
- name: Write global.json
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir subdirectory
|
|
|
|
echo '{"sdk":{"version": "2.2.207","rollForward": "latestFeature"}}' > ./subdirectory/global.json
|
|
|
|
- name: Setup dotnet
|
2023-03-09 20:43:05 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2023-05-18 17:11:51 +08:00
|
|
|
global-json-file: ./subdirectory/global.json
|
2023-04-13 23:28:59 +08:00
|
|
|
- name: Verify dotnet
|
2023-03-09 20:43:05 +08:00
|
|
|
shell: pwsh
|
2023-05-18 17:11:51 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^2.2"
|
2023-03-09 20:43:05 +08:00
|
|
|
|
2023-05-18 17:11:51 +08:00
|
|
|
test-setup-with-dotnet-quality:
|
2023-04-19 22:48:00 +08:00
|
|
|
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 }}
|
|
|
|
|
2023-05-18 17:11:51 +08:00
|
|
|
- name: Setup dotnet 7.0 with preview quality
|
2023-04-19 22:48:00 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2023-05-18 17:11:51 +08:00
|
|
|
dotnet-version: '7.0'
|
|
|
|
dotnet-quality: 'preview'
|
2023-04-19 22:48:00 +08:00
|
|
|
- name: Verify dotnet
|
|
|
|
shell: pwsh
|
2023-05-18 17:11:51 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^7\.0\.\d+-"
|
2023-04-19 22:48:00 +08:00
|
|
|
|
2023-05-29 18:43:18 +08:00
|
|
|
test-setup-with-cache:
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
env:
|
|
|
|
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Clear toolcache
|
|
|
|
shell: pwsh
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
- name: Copy NuGet lock file to root
|
|
|
|
shell: bash
|
|
|
|
run: cp ./__tests__/e2e-test-csproj/packages.lock.json ./packages.lock.json
|
|
|
|
- name: Setup .NET Core 3.1
|
|
|
|
id: setup-dotnet
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: 3.1
|
|
|
|
cache: true
|
|
|
|
- name: Verify Cache
|
|
|
|
if: steps.setup-dotnet.outputs.cache-hit == 'true'
|
|
|
|
shell: bash
|
|
|
|
run: if [[ -e ${NUGET_PACKAGES} ]]; then exit 0; else exit 1; fi
|
|
|
|
- name: Verify dotnet
|
|
|
|
shell: pwsh
|
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^3.1"
|
|
|
|
|
|
|
|
test-setup-with-cache-dependency-path:
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
env:
|
|
|
|
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Clear toolcache
|
|
|
|
shell: pwsh
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
- name: Setup .NET Core 3.1
|
|
|
|
id: setup-dotnet
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
dotnet-version: 3.1
|
|
|
|
cache: true
|
|
|
|
cache-dependency-path: './__tests__/e2e-test-csproj/packages.lock.json'
|
|
|
|
- name: Verify Cache
|
|
|
|
if: steps.setup-dotnet.outputs.cache-hit == 'true'
|
|
|
|
shell: bash
|
|
|
|
run: if [[ -e ${NUGET_PACKAGES} ]]; then exit 0; else exit 1; fi
|
|
|
|
- name: Verify dotnet
|
|
|
|
shell: pwsh
|
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^3.1"
|
|
|
|
|
2022-09-29 23:45:25 +08:00
|
|
|
test-dotnet-version-output-during-single-version-installation:
|
2023-03-09 20:43:05 +08:00
|
|
|
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.401
|
|
|
|
uses: ./
|
|
|
|
id: step1
|
|
|
|
with:
|
|
|
|
dotnet-version: '6.0.401'
|
|
|
|
|
|
|
|
- name: Verify value of the dotnet-version output
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
|
|
|
$version = & dotnet --version
|
|
|
|
Write-Host "Installed version: $version"
|
|
|
|
if (-not ($version -eq '${{steps.step1.outputs.dotnet-version}}')) { throw "Unexpected output value" }
|
2022-09-29 23:45:25 +08:00
|
|
|
|
|
|
|
test-dotnet-version-output-during-multiple-version-installation:
|
2023-03-09 20:43:05 +08:00
|
|
|
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 }}
|
2022-09-29 23:45:25 +08:00
|
|
|
|
2023-03-09 20:43:05 +08:00
|
|
|
- name: Setup dotnet 6.0.401, 5.0.408, 7.0.100-rc.1.22431.12
|
|
|
|
uses: ./
|
|
|
|
id: step2
|
|
|
|
with:
|
|
|
|
dotnet-version: |
|
|
|
|
7.0.100-rc.1.22431.12
|
|
|
|
6.0.401
|
|
|
|
5.0.408
|
|
|
|
|
|
|
|
- name: Verify value of the dotnet-version output
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
|
|
|
$version = "7.0.100-rc.1.22431.12"
|
|
|
|
if (-not ($version -eq '${{steps.step2.outputs.dotnet-version}}')) { throw "Unexpected output value" }
|
2022-09-27 20:47:12 +08:00
|
|
|
|
2020-01-26 14:37:54 +08:00
|
|
|
test-proxy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2023-04-19 19:40:44 +08:00
|
|
|
image: ubuntu:latest
|
2020-01-26 14:37:54 +08:00
|
|
|
options: --dns 127.0.0.1
|
|
|
|
services:
|
|
|
|
squid-proxy:
|
2022-11-16 00:00:14 +08:00
|
|
|
image: ubuntu/squid:latest
|
2020-01-26 14:37:54 +08:00
|
|
|
ports:
|
|
|
|
- 3128:3128
|
|
|
|
env:
|
|
|
|
https_proxy: http://squid-proxy:3128
|
2020-09-16 00:36:09 +08:00
|
|
|
http_proxy: http://squid-proxy:3128
|
2020-01-26 14:37:54 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-01 21:48:47 +08:00
|
|
|
uses: actions/checkout@v3
|
2023-04-19 19:40:44 +08:00
|
|
|
- name: Install Powershell
|
2020-09-16 00:36:09 +08:00
|
|
|
run: |
|
2023-04-19 19:40:44 +08:00
|
|
|
apt-get update
|
|
|
|
apt-get install -y wget apt-transport-https software-properties-common
|
|
|
|
wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"
|
|
|
|
dpkg -i packages-microsoft-prod.deb
|
|
|
|
rm packages-microsoft-prod.deb
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y powershell
|
|
|
|
- name: Clear toolcache
|
|
|
|
shell: pwsh
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
- name: Setup dotnet 6.0
|
2020-01-26 14:37:54 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2023-04-19 19:40:44 +08:00
|
|
|
dotnet-version: 6.0
|
2020-09-03 02:11:56 +08:00
|
|
|
source-url: https://api.nuget.org/v3/index.json
|
|
|
|
env:
|
|
|
|
NUGET_AUTH_TOKEN: NOTATOKEN
|
2020-01-26 14:37:54 +08:00
|
|
|
- name: Verify dotnet
|
2023-04-13 23:28:59 +08:00
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: |
|
|
|
|
__tests__/verify-dotnet.ps1 -Patterns "^6.0" -CheckNugetConfig
|
2019-07-12 04:22:28 +08:00
|
|
|
|
2020-01-26 14:37:54 +08:00
|
|
|
test-bypass-proxy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
https_proxy: http://no-such-proxy:3128
|
2020-09-16 00:36:09 +08:00
|
|
|
no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net
|
2020-01-26 14:37:54 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-01 21:48:47 +08:00
|
|
|
uses: actions/checkout@v3
|
2023-04-19 19:40:44 +08:00
|
|
|
- name: Clear toolcache
|
|
|
|
shell: pwsh
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
2020-09-16 00:36:09 +08:00
|
|
|
- name: Setup dotnet 3.1.201
|
2020-01-26 14:37:54 +08:00
|
|
|
uses: ./
|
|
|
|
with:
|
2020-09-16 00:36:09 +08:00
|
|
|
dotnet-version: 3.1.201
|
2020-09-03 02:11:56 +08:00
|
|
|
source-url: https://api.nuget.org/v3/index.json
|
|
|
|
env:
|
|
|
|
NUGET_AUTH_TOKEN: NOTATOKEN
|
2020-01-26 14:37:54 +08:00
|
|
|
- name: Verify dotnet
|
2023-04-13 23:28:59 +08:00
|
|
|
shell: pwsh
|
2023-04-19 19:40:44 +08:00
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^3.1.201$" -CheckNugetConfig
|