Skip to content

Commit

Permalink
test: add basic test infra
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Sep 19, 2023
1 parent 2c07144 commit f310cdc
Show file tree
Hide file tree
Showing 11 changed files with 317 additions and 16 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm

- run: pnpm lint
- run: pnpm playwright install
- run: pnpm t
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
dist
dev-dist
dist
node_modules
test-results
tests/fixtures
vendors
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint src"
"preview": "vite build && vite preview",
"lint": "eslint src",
"test-roms": "./scripts/download-test-roms.ts",
"test": "playwright test -c tests/e2e"
},
"dependencies": {
"@fontsource-variable/fredoka": "5.0.8",
Expand Down Expand Up @@ -72,6 +74,7 @@
"tailwindcss": "3.3.3",
"typescript": "5.2.2",
"vite": "4.4.9",
"vite-plugin-pwa": "0.16.5"
"vite-plugin-pwa": "0.16.5",
"zx": "7.2.3"
}
}
Loading

0 comments on commit f310cdc

Please sign in to comment.