|
|
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -57,7 +57,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -92,7 +92,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -123,7 +123,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -149,7 +149,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -180,7 +180,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -208,7 +208,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -239,7 +239,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -247,7 +247,7 @@ jobs:
|
|
|
|
|
shell: bash
|
|
|
|
|
run: |
|
|
|
|
|
mkdir subdirectory
|
|
|
|
|
echo '{"sdk":{"version": "9.0.308","rollForward": "latestFeature"}}' > ./subdirectory/global.json
|
|
|
|
|
echo '{"sdk":{"version": "9.0.308"}}' > ./subdirectory/global.json
|
|
|
|
|
- name: Setup dotnet
|
|
|
|
|
uses: ./
|
|
|
|
|
with:
|
|
|
|
@@ -265,7 +265,7 @@ jobs:
|
|
|
|
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -290,7 +290,7 @@ jobs:
|
|
|
|
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -315,7 +315,7 @@ jobs:
|
|
|
|
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -332,38 +332,6 @@ jobs:
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^10.0.1(?!00)"
|
|
|
|
|
|
|
|
|
|
test-setup-global-json-only:
|
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
operating-system:
|
|
|
|
|
[
|
|
|
|
|
ubuntu-22.04,
|
|
|
|
|
ubuntu-latest,
|
|
|
|
|
windows-latest,
|
|
|
|
|
macos-latest,
|
|
|
|
|
macos-15-intel
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
|
- name: Write global.json
|
|
|
|
|
shell: bash
|
|
|
|
|
run: |
|
|
|
|
|
mkdir subdirectory
|
|
|
|
|
echo '{"sdk":{"version": "10.0.101","rollForward": "latestFeature"}}' > ./subdirectory/global.json
|
|
|
|
|
- name: Setup dotnet
|
|
|
|
|
uses: ./
|
|
|
|
|
with:
|
|
|
|
|
global-json-file: ./subdirectory/global.json
|
|
|
|
|
- name: Verify dotnet
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/verify-dotnet.ps1 -Patterns "^10.0"
|
|
|
|
|
|
|
|
|
|
test-global-json-with-comments:
|
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
|
strategy:
|
|
|
|
@@ -379,7 +347,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -387,7 +355,7 @@ jobs:
|
|
|
|
|
shell: bash
|
|
|
|
|
run: |
|
|
|
|
|
mkdir subdirectory
|
|
|
|
|
echo '/* should support comments */ {"sdk":{"version": "10.0.101","rollForward": "latestFeature"}} // should support comments' > ./subdirectory/global.json
|
|
|
|
|
echo '/* should support comments */ {"sdk":{"version": "10.0.101"}} // should support comments' > ./subdirectory/global.json
|
|
|
|
|
- name: Setup dotnet
|
|
|
|
|
uses: ./
|
|
|
|
|
with:
|
|
|
|
@@ -411,7 +379,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -442,7 +410,7 @@ jobs:
|
|
|
|
|
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -480,7 +448,7 @@ jobs:
|
|
|
|
|
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -514,7 +482,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -547,7 +515,7 @@ jobs:
|
|
|
|
|
]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -587,7 +555,7 @@ jobs:
|
|
|
|
|
http_proxy: http://squid-proxy:3128
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -610,7 +578,7 @@ jobs:
|
|
|
|
|
no_proxy: github.com,download.visualstudio.microsoft.com,api.nuget.org,builds.dotnet.microsoft.com,ci.dot.net
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -642,7 +610,7 @@ jobs:
|
|
|
|
|
higher-version: ['10.0.101']
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -671,7 +639,7 @@ jobs:
|
|
|
|
|
[ubuntu-latest, windows-latest, macos-15-intel, macos-latest]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -710,7 +678,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
@@ -738,7 +706,7 @@ jobs:
|
|
|
|
|
operating-system: [ubuntu-latest]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
@@ -758,7 +726,7 @@ jobs:
|
|
|
|
|
operating-system: [macos-latest]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
- name: Clear toolcache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
|
|
|
|