Skip to content

Commit

Permalink
init playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
noxify committed Dec 20, 2024
1 parent 91ba392 commit 509fab3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./tooling/github/setup
- name: Install Playwright Browsers
run: pnpm playwright:init
- name: Run Playwright tests for our nextjs app
run: pnpm test:e2e:nextjs
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
"test": "vitest --project=unit",
"test:ui": "vitest --ui",
"prune": "turbo prune --docker",
"prepare_test": "turbo run build --filter @acme/* --filter !./apps/*",
"turbo": "turbo",
"test:e2e:frontend": "pnpm -F frontend test:e2e",
"test:e2e:nextjs": "pnpm -F nextjs test:e2e",
"playwright:init": "pnpm -F playwright test:init"
},
"devDependencies": {
Expand Down

0 comments on commit 509fab3

Please sign in to comment.