chore(ci): update install #168
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: E2E Screenshot Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.57.0-noble | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24.11.1 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm ci | |
| working-directory: './demo' | |
| - name: Run Playwright tests | |
| run: npm run test:e2e | |
| working-directory: ./demo | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v5 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: demo/playwright-report/ | |
| retention-days: 3 | |
| - name: Upload screenshots on failure | |
| uses: actions/upload-artifact@v5 | |
| if: failure() | |
| with: | |
| name: test-results | |
| path: demo/test-results/ | |
| retention-days: 3 |