Skip to content

feat(Next > CI): Add Playwright end-to-end test workflow #1

feat(Next > CI): Add Playwright end-to-end test workflow

feat(Next > CI): Add Playwright end-to-end test workflow #1

Workflow file for this run

name: Playwright Tests
on:
push:
branches:
- main
pull_request: {}
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: "next/.nvmrc"
- name: 📥 Download deps
uses: bahmutov/npm-install@v1

Check failure on line 17 in .github/workflows/playwright.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/playwright.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
with:
working-directory: next
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30