ci(browser): add extension smoke workflow
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
name: Browser Smoke
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
browser-smoke:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Install Playwright
|
||||
run: npm install --no-save --no-package-lock playwright@1.55.0
|
||||
|
||||
- name: Install Chromium
|
||||
run: npx playwright install --with-deps chromium
|
||||
|
||||
- name: Check smoke script syntax
|
||||
run: node --check tests/browser-smoke.cjs
|
||||
|
||||
- name: Run extension smoke
|
||||
run: xvfb-run --auto-servernum node tests/browser-smoke.cjs
|
||||
|
||||
- name: Upload browser diagnostics
|
||||
if: ${{ failure() }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: browser-smoke-diagnostics
|
||||
path: test-results/browser-smoke
|
||||
if-no-files-found: ignore
|
||||
Reference in New Issue
Block a user