Skip to content

Commit 84fbe28

Browse files
authored
Add GitHub Copilot agent setup workflow (#1543)
1 parent c9a2752 commit 84fbe28

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

.changeset/patch-add-copilot-agent-setup-workflow.md

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
23+
contents: read
24+
25+
# You can define any steps you want, and they will run before the agent starts.
26+
# If you do not check out your code, Copilot will do this for you.
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v5
30+
31+
- name: Set up Node.js
32+
uses: actions/setup-node@v5
33+
with:
34+
node-version: "24"
35+
cache: npm
36+
cache-dependency-path: pkg/workflow/js/package-lock.json
37+
38+
- name: Set up Go
39+
uses: actions/setup-go@v5
40+
with:
41+
go-version-file: go.mod
42+
cache: true
43+
44+
- name: Install JavaScript dependencies
45+
run: npm ci
46+
working-directory: ./pkg/workflow/js
47+
48+
- name: Install development dependencies
49+
run: make deps-dev
50+
51+
- name: Build code
52+
run: make build
53+
continue-on-error: true

0 commit comments

Comments
 (0)