Update arm debugger config templates to match latest release 1.8.0 #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: debug-adapter-registry | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/ci.yml' | |
| - 'registry/**' | |
| - 'schemas/**' | |
| - 'templates/**' | |
| release: | |
| types: [published] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| if: | | |
| ${{ github.event_name == 'pull_request' || github.event_name == 'release' }} | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| name: 'Check schemas of registry and templates' | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Lint registry and templates | |
| run: | | |
| npm install --save-dev eslint eslint-plugin-jsonc eslint-plugin-yml eslint-formatter-compact | |
| npx eslint --no-config-lookup --format compact --parser yaml-eslint-parser --plugin yml --ext .yml \ | |
| --rule 'yml/quotes: ["error", { prefer: "double" }]' \ | |
| --rule 'yml/indent: ["error", 2]' \ | |
| --rule 'no-trailing-spaces: "error"' \ | |
| registry | |
| npx eslint --no-config-lookup --format compact --parser jsonc-eslint-parser --plugin jsonc --ext .json \ | |
| --rule 'jsonc/quotes: ["error", "double"]' \ | |
| --rule 'jsonc/indent: ["error", 4]' \ | |
| --rule 'no-trailing-spaces: "error"' \ | |
| templates | |
| - name: Check registry schema | |
| uses: GrantBirki/json-yaml-validate@v3.3.2 | |
| with: | |
| base_dir: registry | |
| json_schema: schemas/debug-adapters.schema.json | |
| yaml_as_json: true | |
| ajv_strict_mode: false | |
| use_gitignore: false | |
| - name: Check templates schemas | |
| uses: GrantBirki/json-yaml-validate@v3.3.2 | |
| with: | |
| base_dir: templates | |
| json_schema: schemas/templates.schema.json | |
| ajv_strict_mode: false | |
| use_gitignore: false | |
| release: | |
| if: ${{ github.event_name == 'release' }} | |
| needs: [ tests ] | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: ZIP files | |
| run: zip -r debug-adapter-registry.zip registry schemas templates | |
| - name: TAR files | |
| run: tar -czf debug-adapter-registry.tar.gz registry schemas templates | |
| - name: Attach files to release assets | |
| id: release_assets | |
| uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: debug-adapter-registry.* | |
| tag: ${{ github.ref }} | |
| overwrite: true | |
| file_glob: true |