Repository navigation
Add Copilot cloud agent environment setup workflow (#373) #2
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
| # Prepares the Copilot cloud agent's ephemeral environment before the | |
| # model starts: Node from .nvmrc, npm cache, npm ci. Runs on changes to | |
| # itself so pull requests validate it; takes effect for agent sessions | |
| # once merged to the default branch. | |
| name: Copilot Setup Steps | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| pull_request: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| jobs: | |
| # The job must be called copilot-setup-steps or the agent ignores it. | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/npm-ci-via-cached-nvmrc |