perf(ci): drop --with-deps from patchright install (saves ~11s per run) #11
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Cache node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| restore-keys: node-modules-${{ runner.os }}- | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Cache Patchright Chromium | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: patchright-chromium-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| restore-keys: patchright-chromium-${{ runner.os }}- | |
| - name: Install Patchright Chromium | |
| run: npx patchright install chromium | |
| - name: Build | |
| run: npm run build | |
| - name: Test | |
| run: npm test | |
| timeout-minutes: 10 |