chore: set up playwright in ci action #529
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| paths: | |
| - ".github/workflows/ci.yml" | |
| - "package.json" | |
| - "gulpfile.js" | |
| - "build/**" | |
| - "src/**" | |
| - "tests/**" | |
| jobs: | |
| CI: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install | |
| run: npm ci --no-audit --no-fund | |
| - name: Install Playwright | |
| run: npx -y [email protected] install --with-deps chromium | |
| - name: Build scripts | |
| run: npx gulp scripts | |
| - name: Install Playwright Deps | |
| run: npx -y playwright install --with-deps chromium | |
| - name: Tests | |
| run: npm run test |