Validate global.json SDK version before rollForward optimization (#742)

This commit is contained in:
Priya Gupta
2026-06-16 22:56:42 +05:30
committed by GitHub
parent 9a946fdbd5
commit 95a3f8b067
4 changed files with 20 additions and 5 deletions

View File

@@ -273,14 +273,14 @@ jobs:
shell: bash
run: |
mkdir subdirectory
echo '{"sdk":{"version": "3.1.0","rollForward": "latestMajor"}}' > ./subdirectory/global.json
echo '{"sdk":{"version": "8.0.100","rollForward": "latestMajor"}}' > ./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 "^(?!3)"
run: __tests__/verify-dotnet.ps1 -Patterns "^(?!8)"
test-setup-global-json-rollforward-latestfeature:
runs-on: ${{ matrix.operating-system }}