mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: run extension tests in tests_primary (#23245)
This commit is contained in:
parent
e550df060e
commit
4a9723df48
28
.github/workflows/tests_primary.yml
vendored
28
.github/workflows/tests_primary.yml
vendored
@ -252,6 +252,34 @@ jobs:
|
||||
- run: npm run test-web
|
||||
if: always()
|
||||
|
||||
test_vscode_extension:
|
||||
name: VSCode Extension
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- run: npm ci
|
||||
env:
|
||||
DEBUG: pw:install
|
||||
- run: npm run build
|
||||
- run: npx playwright install chromium
|
||||
- name: Checkout extension
|
||||
run: git clone https://github.com/microsoft/playwright-vscode.git
|
||||
- name: Print extension revision
|
||||
run: git rev-parse HEAD
|
||||
working-directory: ./playwright-vscode
|
||||
- name: Remove @playwright/test from extension dependencies
|
||||
run: node -e "const p = require('./package.json'); delete p.devDependencies['@playwright/test']; fs.writeFileSync('./package.json', JSON.stringify(p, null, 2));"
|
||||
working-directory: ./playwright-vscode
|
||||
- name: Build extension
|
||||
run: npm install && npm run build
|
||||
working-directory: ./playwright-vscode
|
||||
- name: Run extension tests
|
||||
run: npm run test -- --workers=1
|
||||
working-directory: ./playwright-vscode
|
||||
|
||||
test-package-installations:
|
||||
name: "Installation Test ${{ matrix.os }}"
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user