fixup! Transform Action jest tests into playwright (#592) #22
This file contains 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: Playwright | |
on: | |
pull_request: | |
schedule: | |
- cron: '0 6 * * *' # daily at 6:00 UTC (7:00 CET, 8:00 CEST) | |
jobs: | |
test: | |
name: Playwright | |
runs-on: ubuntu-24.04 | |
container: | |
image: mcr.microsoft.com/playwright:v1.50.1-noble | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: npm | |
- name: Print Node.js and npm version | |
run: node --version && npm --version | |
- name: Install | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests and generate test report | |
run: npm run test:playwright-ct:all | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Upload Playwright test report | |
uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |