Skip to content

Commit 82a03d4

Browse files
Copilotfriggeri
andcommitted
Update copilot-setup-steps.yml to match devcontainer.json
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
1 parent 145ecef commit 82a03d4

1 file changed

Lines changed: 86 additions & 3 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 86 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: "Copilot Setup Steps"
22

3-
# This workflow configures the environment for GitHub Copilot Agent with gh-aw MCP server
3+
# This workflow configures the environment for GitHub Copilot Agent
4+
# Automatically run the setup steps when they are changed to allow for easy validation
45
on:
56
workflow_dispatch:
67
push:
78
paths:
89
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
913

1014
jobs:
1115
# The job MUST be called 'copilot-setup-steps' to be recognized by GitHub Copilot Agent
@@ -18,8 +22,87 @@ jobs:
1822
contents: read
1923

2024
steps:
25+
# Checkout the repository to install dependencies
26+
- name: Checkout code
27+
uses: actions/checkout@v6.0.2
28+
29+
# Setup Node.js (for TypeScript/JavaScript SDK and tooling)
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v6
32+
with:
33+
node-version: "22"
34+
cache: "npm"
35+
cache-dependency-path: "./nodejs/package-lock.json"
36+
37+
# Setup Python (for Python SDK)
38+
- name: Set up Python
39+
uses: actions/setup-python@v6
40+
with:
41+
python-version: "3.12"
42+
43+
# Setup uv (Python package manager used in this repo)
44+
- name: Set up uv
45+
uses: astral-sh/setup-uv@v7
46+
with:
47+
enable-cache: true
48+
49+
# Setup Go (for Go SDK)
50+
- name: Set up Go
51+
uses: actions/setup-go@v6
52+
with:
53+
go-version: "1.23"
54+
55+
# Setup .NET (for .NET SDK)
56+
- name: Set up .NET
57+
uses: actions/setup-dotnet@v5
58+
with:
59+
dotnet-version: "8.0.x"
60+
61+
# Install just command runner
62+
- name: Install just
63+
uses: extractions/setup-just@v4
64+
65+
# Install gh-aw extension for advanced GitHub CLI features
2166
- name: Install gh-aw extension
2267
run: |
2368
curl -fsSL https://github.com/__raw/githubnext/gh-aw/refs/heads/main/install-gh-aw.sh | bash
24-
- name: Verify gh-aw installation
25-
run: gh aw version
69+
70+
# Install JavaScript dependencies
71+
- name: Install Node.js dependencies
72+
working-directory: ./nodejs
73+
run: npm ci --ignore-scripts
74+
75+
# Install Python dependencies
76+
- name: Install Python dependencies
77+
working-directory: ./python
78+
run: uv sync --locked --all-extras --dev
79+
80+
# Install Go dependencies
81+
- name: Install Go dependencies
82+
working-directory: ./go
83+
run: go mod download
84+
85+
# Restore .NET dependencies
86+
- name: Restore .NET dependencies
87+
working-directory: ./dotnet
88+
run: dotnet restore
89+
90+
# Install test harness dependencies
91+
- name: Install test harness dependencies
92+
working-directory: ./test/harness
93+
run: npm ci --ignore-scripts
94+
95+
# Verify installations
96+
- name: Verify tool installations
97+
run: |
98+
echo "=== Verifying installations ==="
99+
node --version
100+
npm --version
101+
python --version
102+
uv --version
103+
go version
104+
dotnet --version
105+
just --version
106+
gh --version
107+
gh aw version
108+
echo "✅ All tools installed successfully"

0 commit comments

Comments
 (0)