Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "Copilot Setup Steps"

# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml

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

# Set the permissions to the lowest permissions possible needed for your steps.
# Copilot will be given its own token for its operations.
permissions:
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"

- name: Install dependencies
run: yarn install --frozen-lockfile
env:
# Skip Playwright browser downloads to avoid installation failures
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1

- name: Install Playwright browsers (if needed)
run: |
if [ -d "node_modules/playwright" ]; then
echo "Installing Playwright browsers..."
npx playwright install --with-deps
else
echo "Playwright not found, skipping browser installation"
fi
continue-on-error: true

- name: Update VS Code type definitions
run: yarn update-dts

- name: Basic build verification
run: |
echo "Verifying basic setup..."
if [ ! -d "node_modules" ]; then
echo "❌ node_modules not found"
exit 1
fi
if [ ! -f "node_modules/.bin/tsc" ]; then
echo "❌ TypeScript compiler not found"
exit 1
fi
if [ ! -f "node_modules/.bin/webpack" ]; then
echo "❌ Webpack not found"
exit 1
fi
echo "✅ Basic setup verification successful"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3966,7 +3966,7 @@
"@typescript-eslint/eslint-plugin": "6.10.0",
"@typescript-eslint/parser": "6.10.0",
"@vscode/test-electron": "^2.3.8",
"@vscode/test-web": "^0.0.29",
"@vscode/test-web": "^0.0.71",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test-web upgrade required to get the latest playwright so yarn can succeed on Ubuntu 24.

"assert": "^2.0.0",
"buffer": "^6.0.3",
"constants-browserify": "^1.0.0",
Expand Down
Loading