Copilot Setup Steps #4
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. | |
| # This workflow installs Go, downloads dependencies, and validates | |
| # that the project compiles and passes tests — giving the agent a | |
| # working environment identical to local development. | |
| name: Copilot Setup Steps | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| # The job MUST be called copilot-setup-steps or it will not be picked up by Copilot. | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| cache: true | |
| - run: go mod download | |
| - run: go build ./... | |
| - run: go test ./... -short |