Skip to content

Commit

Permalink
Next > CI: Add Playwright end-to-end test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danactive committed Aug 26, 2023
1 parent 6ff6704 commit 9f7202c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 29 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,25 @@ jobs:
- name: Unit Test runner
run: npm run test:ci
working-directory: next
e2etest:
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
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
29 changes: 0 additions & 29 deletions .github/workflows/playwright.yml

This file was deleted.

0 comments on commit 9f7202c

Please sign in to comment.