chore: update dependencies #15
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 - PR Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Cache Puppeteer browsers | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/puppeteer | |
| key: ${{ runner.os }}-puppeteer-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-puppeteer- | |
| - name: Install Chrome for Puppeteer | |
| run: npx puppeteer browsers install chrome | |
| - name: Install service-worker | |
| run: npx twd-js init public --save | |
| - name: Start Vite dev server | |
| run: | | |
| nohup npm run twd:dev > vite.log 2>&1 & | |
| npx wait-on http://localhost:5173 | |
| - name: Run Puppeteer tests (test:ci) | |
| run: npx twd-cli run | |
| env: | |
| CI: true |