mirror of
https://github.com/actions/setup-dotnet.git
synced 2026-02-07 04:28:18 +00:00
Add support for workloads input (#693)
* Add workloads input * fix typo * resloves conflicts * Doc update --------- Co-authored-by: gowridurgad <gowridurgad@gmail.com>
This commit is contained in:
33
.github/workflows/e2e-tests.yml
vendored
33
.github/workflows/e2e-tests.yml
vendored
@@ -590,3 +590,36 @@ jobs:
|
||||
- name: Verify dotnet (higher version)
|
||||
shell: pwsh
|
||||
run: __tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.lower-version }}$", "^${{ matrix.higher-version }}$"
|
||||
|
||||
test-setup-with-workloads-input:
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
operating-system:
|
||||
[ubuntu-latest, windows-latest, macos-15-intel, macos-latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: Clear toolcache
|
||||
shell: pwsh
|
||||
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
||||
|
||||
- name: Setup dotnet 9.0 with workloads
|
||||
uses: ./
|
||||
id: setup-dotnet
|
||||
with:
|
||||
dotnet-version: '9.0'
|
||||
workloads: wasm-tools
|
||||
- name: Verify workload
|
||||
shell: pwsh
|
||||
run: |
|
||||
$output = dotnet workload list | Out-String
|
||||
Write-Host "Workload list output:"
|
||||
Write-Host $output
|
||||
if ($output -notmatch "wasm-tools") {
|
||||
throw "Expected workload 'wasm-tools' not found"
|
||||
}
|
||||
- name: Verify dotnet
|
||||
shell: pwsh
|
||||
run: __tests__/verify-dotnet.ps1 -Patterns "^9\.0"
|
||||
|
||||
Reference in New Issue
Block a user