Repository navigation
Prepare 1.1.0 with secure tokens, reliable requests and maintenance checks #13
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| name: Lint, unit tests, audit and package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| - run: npm ci --ignore-scripts | |
| - run: npm test | |
| - run: npm audit | |
| - run: npm run package | |
| - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 | |
| with: | |
| name: cloudflare-devtools-vsix | |
| path: dist/*.vsix | |
| if-no-files-found: error | |
| extension: | |
| name: VS Code ${{ matrix.vscode }} (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-22.04, windows-latest, macos-15] | |
| vscode: ['1.66.0', stable] | |
| env: | |
| VSCODE_VERSION: ${{ matrix.vscode }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| - run: npm ci --ignore-scripts | |
| - name: Run extension smoke test (Linux) | |
| if: runner.os == 'Linux' | |
| run: xvfb-run -a npm run test:integration | |
| - name: Run extension smoke test (macOS and Windows) | |
| if: runner.os != 'Linux' | |
| run: npm run test:integration |