-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (54 loc) · 2.07 KB
/
Copy pathcopilot-setup-steps.yml
File metadata and controls
61 lines (54 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Copilot Setup Steps
on:
workflow_dispatch:
push:
paths:
- ".github/workflows/copilot-setup-steps.yml"
pull_request:
paths:
- ".github/workflows/copilot-setup-steps.yml"
permissions:
contents: read
jobs:
# NOTE: The job MUST stay named `copilot-setup-steps` or the Copilot coding
# agent will not pick it up. These steps run BEFORE the agent's firewall is
# enabled, so anything the agent's MCP servers need at runtime should be
# downloaded/cached here.
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: "24"
- name: Pre-install local (stdio) MCP server packages
shell: bash
env:
NPM_CONFIG_FUND: "false"
NPM_CONFIG_AUDIT: "false"
run: |
set -euxo pipefail
# The agent launches these servers via `npx -y <pkg>@latest`. Installing
# them globally warms the npm cache so they resolve quickly once the
# runtime firewall is in place. Keep this list in sync with the
# `type: "local"` MCP servers configured for the coding agent under
# repo Settings -> Copilot -> coding agent (configured there, not in a
# file in this repo).
npm install -g \
@playwright/mcp@latest \
fast-filesystem-mcp@latest \
octocode-mcp@latest \
yggdrasil-mcp@latest
- name: Install Playwright browser (Chromium)
shell: bash
run: |
set -euxo pipefail
# The playwright MCP server needs a browser binary present. Fetch
# Chromium and its OS dependencies before the firewall blocks downloads.
npx --yes playwright install --with-deps chromium
- name: Note Windows validation workflows
shell: bash
run: |
echo "AutoHotkey compilation and PowerShell validation remain in the Windows workflows:"
echo " - .github/workflows/ahk-lint-format-compile.yml"
echo " - .github/workflows/powershell.yml"