mirror of
https://github.com/tompro/sattle.git
synced 2026-08-26 23:05:58 +00:00
ci: run playwright e2e suite on github runners
This commit is contained in:
@@ -25,3 +25,27 @@ jobs:
|
||||
- run: npm run typecheck
|
||||
- run: npx vitest run
|
||||
- run: npx quasar build -m pwa
|
||||
|
||||
e2e:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm ci --prefix src-pwa
|
||||
# no system chromium on the runners: playwright.config.ts only forces an
|
||||
# executablePath when CHROMIUM_PATH or a system chromium exists, so the
|
||||
# bundled browser installed here is used
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- run: npm run test:e2e
|
||||
- if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: playwright-report
|
||||
path: |
|
||||
playwright-report/
|
||||
test-results/
|
||||
retention-days: 7
|
||||
|
||||
Reference in New Issue
Block a user