mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 09:20:00 +02:00
feat(ci-pipeline): add Playwright testing job to CI workflow
- Introduced a new Playwright job that runs after the build job. - Added steps for checking out the repository, setting up Node.js, restoring node_modules from cache, installing dependencies, and installing Playwright browsers. - Included a step to run Playwright tests, enhancing the CI pipeline with automated testing capabilities.
This commit is contained in:
parent
14c88d32b3
commit
69ca816719
1 changed files with 22 additions and 1 deletions
21
.github/workflows/ci-pipeline.yml
vendored
21
.github/workflows/ci-pipeline.yml
vendored
|
@ -75,3 +75,24 @@ jobs:
|
|||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
|
||||
playwright:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
- name: Restore node_modules from cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install --with-deps
|
||||
- name: Run Playwright tests
|
||||
run: npx playwright test
|
Loading…
Add table
Add a link
Reference in a new issue