Skip to content

Commit

Permalink
wip: integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelSiidorow committed Aug 11, 2024
1 parent 4caeac6 commit 43b0387
Show file tree
Hide file tree
Showing 10 changed files with 245 additions and 48 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Playwright Tests
on:
push:
# branches: [main]
pull_request:
# branches: [main]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9.6.0

- uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

- name: Run Playwright tests
run: pnpm exec playwright test

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
"docker:start:web": "docker run -p 3000:3000 web",
"format": "prettier --write \"**/*.{js,ts,ts,tsx,md,json}\"",
"lint": "turbo run lint --cache-dir=.turbo",
"start": "dotenv -- turbo run start --cache-dir=.turbo",
"start": "NODE_ENV=\"production\" dotenv -- turbo run start --cache-dir=.turbo",
"test": "turbo run test --cache-dir=.turbo",
"typecheck": "turbo run typecheck --cache-dir=.turbo"
},
"devDependencies": {
"@playwright/test": "catalog:",
"dotenv-cli": "^7.4.2",
"prettier": "^3.3.3",
"prettier-plugin-packagejson": "^2.5.1",
Expand Down
Loading

0 comments on commit 43b0387

Please sign in to comment.