Skip to content

Commit e48df5c

Browse files
ntottenclaude
andcommitted
Install Playwright browsers in CI for web tests
The web extension tests use @vscode/test-web which requires Playwright to run browser-based tests. Add explicit Playwright chromium installation step before running web tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f6529d3 commit e48df5c

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
node-version-file: ".nvmrc"
5252
- uses: pnpm/action-setup@v4
5353
- run: pnpm install
54+
- run: pnpm exec playwright install --with-deps chromium
5455
- run: pnpm test:web
5556
package:
5657
runs-on: ubuntu-latest
@@ -63,7 +64,7 @@ jobs:
6364
node-version-file: ".nvmrc"
6465
- uses: pnpm/action-setup@v4
6566
- run: pnpm install
66-
- run: npx @vscode/vsce package
67+
- run: npx @vscode/vsce package --no-dependencies
6768
- run: echo "VSIX_PATH=$(find . -maxdepth 1 -type f -iname "*.vsix" | head -1)" >> $GITHUB_ENV
6869
- run: echo "VSIX_NAME=$(basename $(find . -maxdepth 1 -type f -iname "*.vsix" | head -1))" >> $GITHUB_ENV
6970
- uses: actions/upload-artifact@v4
@@ -90,7 +91,7 @@ jobs:
9091
echo "is_prerelease=false" >> $GITHUB_OUTPUT
9192
fi
9293
- run: pnpm install
93-
- run: npx @vscode/vsce package ${{ steps.check_prerelease.outputs.is_prerelease == 'true' && '--pre-release' || '' }}
94+
- run: npx @vscode/vsce package --no-dependencies ${{ steps.check_prerelease.outputs.is_prerelease == 'true' && '--pre-release' || '' }}
9495
- run: echo "VSIX_PATH=$(find . -maxdepth 1 -type f -iname "*.vsix" | head -1)" >> $GITHUB_ENV
9596
- run: echo "VSIX_NAME=$(basename $(find . -maxdepth 1 -type f -iname "*.vsix" | head -1))" >> $GITHUB_ENV
9697
- name: Create GitHub Release
@@ -109,4 +110,4 @@ jobs:
109110
110111
---
111112
See the full [CHANGELOG](https://github.com/prettier/prettier-vscode/blob/main/CHANGELOG.md) for details."
112-
- run: npx @vscode/vsce publish -p ${{ secrets.MARKETPLACE_TOKEN }} ${{ steps.check_prerelease.outputs.is_prerelease == 'true' && '--pre-release' || '' }}
113+
- run: npx @vscode/vsce publish --no-dependencies -p ${{ secrets.MARKETPLACE_TOKEN }} ${{ steps.check_prerelease.outputs.is_prerelease == 'true' && '--pre-release' || '' }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
]
9595
},
9696
"devDependencies": {
97+
"@playwright/test": "^1.57.0",
9798
"@types/fs-extra": "^11.0.4",
9899
"@types/glob": "^7.2.0",
99100
"@types/minimatch": "^5.1.2",

pnpm-lock.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)