Skip to content

Commit 4d19419

Browse files
authored
improve copilot agent setup (#7305)
* improve copilot agent setup * Update vscode test
1 parent 2565b75 commit 4d19419

File tree

3 files changed

+376
-335
lines changed

3 files changed

+376
-335
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
contents: read
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: "20"
32+
cache: "yarn"
33+
34+
- name: Install dependencies
35+
run: yarn install --frozen-lockfile
36+
env:
37+
# Skip Playwright browser downloads to avoid installation failures
38+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
39+
40+
- name: Install Playwright browsers (if needed)
41+
run: |
42+
if [ -d "node_modules/playwright" ]; then
43+
echo "Installing Playwright browsers..."
44+
npx playwright install --with-deps
45+
else
46+
echo "Playwright not found, skipping browser installation"
47+
fi
48+
continue-on-error: true
49+
50+
- name: Update VS Code type definitions
51+
run: yarn update-dts
52+
53+
- name: Basic build verification
54+
run: |
55+
echo "Verifying basic setup..."
56+
if [ ! -d "node_modules" ]; then
57+
echo "❌ node_modules not found"
58+
exit 1
59+
fi
60+
if [ ! -f "node_modules/.bin/tsc" ]; then
61+
echo "❌ TypeScript compiler not found"
62+
exit 1
63+
fi
64+
if [ ! -f "node_modules/.bin/webpack" ]; then
65+
echo "❌ Webpack not found"
66+
exit 1
67+
fi
68+
echo "✅ Basic setup verification successful"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3976,7 +3976,7 @@
39763976
"@typescript-eslint/eslint-plugin": "6.10.0",
39773977
"@typescript-eslint/parser": "6.10.0",
39783978
"@vscode/test-electron": "^2.3.8",
3979-
"@vscode/test-web": "^0.0.29",
3979+
"@vscode/test-web": "^0.0.71",
39803980
"assert": "^2.0.0",
39813981
"buffer": "^6.0.3",
39823982
"constants-browserify": "^1.0.0",

0 commit comments

Comments
 (0)