Skip to content

Commit

Permalink
Next > CI: Configure Playwright to run in next folder
Browse files Browse the repository at this point in the history
  • Loading branch information
danactive committed Aug 26, 2023
1 parent 4abc34d commit f6540c5
Show file tree
Hide file tree
Showing 4 changed files with 1,603 additions and 1,507 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,30 @@ jobs:
run: npm run test:ci
working-directory: next
e2etest:
name: Playwright
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: ⎔ Setup node
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
with:
working-directory: next
- name: Run Playwright tests
run: npx playwright test
with:
working-directory: next
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
Loading

0 comments on commit f6540c5

Please sign in to comment.