.github/workflows/playwright.yml (view raw)
1name: Playwright Tests
2on:
3 push:
4 branches: [ main, master ]
5 pull_request:
6 branches: [ main, master ]
7jobs:
8 test:
9 timeout-minutes: 60
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v3
13 - uses: actions/setup-node@v3
14 with:
15 node-version: 18
16 - name: Install dependencies
17 run: yarn
18 working-directory: frontend
19 - name: Install Playwright Browsers
20 run: yarn playwright install --with-deps
21 working-directory: frontend
22 - name: Run Playwright tests
23 run: yarn playwright test
24 working-directory: frontend
25 - uses: actions/upload-artifact@v3
26 if: always()
27 with:
28 name: playwright-report
29 path: frontend/playwright-report/
30 retention-days: 30