ci(docker): validate the docker self-host image and exercise it from … #63
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
| --- | |
| # Setup steps for the GitHub Copilot coding agent. | |
| # | |
| # GitHub runs the job named exactly `copilot-setup-steps` from this path before | |
| # the agent's firewall is enabled, so engines that must be fetched from the | |
| # network (XS, V8) can be pre-installed here. The job name and the | |
| # `.github/workflows/` location are both required for Copilot to discover it. | |
| # | |
| # Installation is delegated to the repo's own maintained installer so this stays | |
| # in sync with CI. It installs XS and V8 into ~/.engines/bin, which is where the | |
| # benchmark harness (packages/benchmark/run-tests.sh) looks for them. | |
| name: Copilot Setup Steps | |
| on: | |
| workflow_dispatch: | |
| # Run on changes to this file so it can be validated in CI. | |
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| pull_request: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| permissions: | |
| contents: read | |
| # Cancel in-progress runs for the same branch when a new run is started | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| # without this, setup-node errors on mismatched yarn versions | |
| - run: corepack enable | |
| - name: Use Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version-file: .node-version | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| # Pre-install the XS and V8 engines into ~/.engines using the repo's own | |
| # installer (the same command CI runs), so they are available before the | |
| # Copilot agent's firewall blocks the downloads. | |
| - name: Install engines | |
| run: yarn workspace @endo/benchmark run install-engines |