ci: drop dependabot-commit-dist workflow handoff #725
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: 'Copilot Setup Steps' | |
| on: | |
| push: | |
| paths: | |
| - '.codeql-version' | |
| - '.github/actions/setup-codeql-environment/action.yml' | |
| - '.github/workflows/copilot-setup-steps.yml' | |
| - '.node-version' | |
| - '**/codeql-pack.yml' | |
| - '**/codeql-pack.lock.yml' | |
| - '**/package.json' | |
| - '**/package-lock.json' | |
| pull_request: | |
| paths: | |
| - '.codeql-version' | |
| - '.github/actions/setup-codeql-environment/action.yml' | |
| - '.github/workflows/copilot-setup-steps.yml' | |
| - '.node-version' | |
| - '**/codeql-pack.yml' | |
| - '**/codeql-pack.lock.yml' | |
| - '**/package.json' | |
| - '**/package-lock.json' | |
| jobs: | |
| # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. | |
| copilot-setup-steps: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Copilot Setup - Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| ## TODO : fix and/or rework to avoid "token not provided" error when this workflow | |
| ## is initiated purely for use by Copilot Coding Agent (CCA) (i.e. not triggered | |
| ## by normal code change). Uncomment the `with` section or refactor approach. | |
| #with: | |
| # submodules: recursive | |
| # token: ${{ secrets.QL_DEV_TOKEN }} | |
| - name: Copilot Setup - Setup Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | |
| with: | |
| cache: 'npm' | |
| node-version-file: '.node-version' | |
| - name: Copilot Setup - Install dependencies | |
| run: npm ci --include=optional --ignore-scripts | |
| ## esbuild's optional platform binary is normally wired up by its postinstall | |
| ## script; .npmrc 'ignore-scripts=true' suppresses that, so rebuild here. | |
| - name: Copilot Setup - Rebuild esbuild platform binary | |
| run: npm rebuild esbuild --ignore-scripts=false | |
| - name: Copilot Setup - Setup CodeQL environment | |
| uses: ./.github/actions/setup-codeql-environment | |
| with: | |
| install-language-runtimes: true | |
| - name: Copilot Setup - Install CodeQL packs used in integration tests | |
| run: ./server/scripts/install-packs.sh | |
| # VS Code extension integration test prerequisites | |
| - name: Copilot Setup - Install xvfb and VS Code dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y xvfb libgbm1 libgtk-3-0 libxshmfence1 | |
| sudo apt-get install -y libasound2t64 || sudo apt-get install -y libasound2 | |
| - name: Copilot Setup - Build server (extension dependency) | |
| run: npm run build -w server | |
| - name: Copilot Setup - Bundle extension and server | |
| working-directory: extensions/vscode | |
| run: | | |
| npm run bundle | |
| npm run bundle:server | |
| - name: Copilot Setup - Cache VS Code for integration tests | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | |
| with: | |
| key: vscode-test-${{ runner.os }}-stable | |
| path: extensions/vscode/.vscode-test | |
| - name: Copilot Setup - Download VS Code for integration tests | |
| working-directory: extensions/vscode | |
| run: npm run download:vscode |