mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-02-01 18:02:31 -05:00
Update browser-extension-build.yml to run e2e tests in CI (#1404)
This commit is contained in:
41
.github/workflows/browser-extension-build.yml
vendored
41
.github/workflows/browser-extension-build.yml
vendored
@@ -64,6 +64,47 @@ jobs:
|
||||
with:
|
||||
browser: chrome
|
||||
|
||||
e2e-tests:
|
||||
needs: build-shared-libraries
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: apps/browser-extension/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
working-directory: apps/browser-extension
|
||||
|
||||
- name: Install Playwright browsers
|
||||
run: npx playwright install chromium --with-deps
|
||||
working-directory: apps/browser-extension
|
||||
|
||||
- name: Build and run E2E tests
|
||||
run: xvfb-run --auto-servernum npm run test:e2e:build
|
||||
working-directory: apps/browser-extension
|
||||
|
||||
- name: Upload Playwright report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: playwright-report
|
||||
path: apps/browser-extension/playwright-report/
|
||||
retention-days: 30
|
||||
|
||||
- name: Upload test results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: playwright-test-results
|
||||
path: apps/browser-extension/tests/test-results/
|
||||
retention-days: 30
|
||||
|
||||
build-firefox-extension:
|
||||
needs: build-shared-libraries
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user