Tutorial #2
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: | |
| pull_request: | |
| 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: Start Vite dev server | |
| run: | | |
| nohup npm run dev > vite.log 2>&1 & | |
| npx wait-on http://localhost:5173 | |
| env: | |
| CI: true | |
| - name: Run Puppeteer tests (test:ci) | |
| run: npm run test:ci | |
| env: | |
| CI: true | |