Skip to content

Commit

Permalink
Merge pull request #431 from akv-platform/allow-json-comments
Browse files Browse the repository at this point in the history
Allow json comments
  • Loading branch information
nikolai-laevskii committed Jun 6, 2023
2 parents 7ed547c + b5ebe9e commit 70fa320
Show file tree
Hide file tree
Showing 6 changed files with 1,539 additions and 7 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/e2e-tests.yml
Expand Up @@ -229,6 +229,31 @@ jobs:
shell: pwsh
run: __tests__/verify-dotnet.ps1 -Patterns "^2.2"

test-global-json-with-comments:
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
echo '/* should support comments */ {"sdk":{"version": "2.2.207","rollForward": "latestFeature"}} // should support comments' > ./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 "^2.2"

test-setup-with-dotnet-quality:
runs-on: ${{ matrix.operating-system }}
strategy:
Expand Down
36 changes: 36 additions & 0 deletions .licenses/npm/json5.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70fa320

Please sign in to comment.