Skip to content

Commit

Permalink
Merge pull request #35 from hildjj/save-state
Browse files Browse the repository at this point in the history
Save state to URL hash
  • Loading branch information
hildjj authored Jun 5, 2024
2 parents f2341b4 + 12de6cb commit 884c854
Show file tree
Hide file tree
Showing 19 changed files with 1,949 additions and 1,140 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies
run: pnpm i -r
- name: build
run: npm run build && npm run docs
- name: Install Playwright Browsers
run: cd web && npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test:web
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: web/playwright-report/
retention-days: 30
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ coverage/
docs/
lib/
node_modules/
web/playwright-report/
web/test-results/
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"eslint.experimental.useFlatConfig": true
"eslint.experimental.useFlatConfig": true,
"playwright.env": {
"VSCODE_PLAYWRIGHT": "1"
}
}
20 changes: 13 additions & 7 deletions examples/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
"clean": "rimraf lib coverage docs",
"docs": "typedoc && cd web && npm run build",
"lint": "eslint .",
"start": "five-server",
"start": "cd web && npm start",
"pretest": "npm run build",
"test": "npm run test:noBuild",
"test:noBuild": "c8 node --test test/*.test.js",
"test:web": "cd web && npm test",
"build": "tsup",
"build:sourcemap": "npm run build -- --sourcemap",
"watch": "tsup --sourcemap --watch src/ --watch test/ --onSuccess 'npm run test:noBuild'",
Expand All @@ -44,20 +45,19 @@
"name": "Joe Hildebrand",
"email": "[email protected]"
},
"packageManager": "[email protected]",
"license": "MIT",
"devDependencies": {
"@cto.af/eslint-config": "4.0.2",
"c8": "9.1.0",
"eslint": "8.57.0",
"eslint-plugin-jsdoc": "48.2.7",
"eslint-plugin-markdown": "5.0.0",
"five-server": "0.3.3",
"rimraf": "^5.0.7",
"tsup": "8.0.2",
"tsup": "8.1.0",
"typedoc": "0.25.13",
"typescript-eslint": "7.11.0"
"typescript-eslint": "7.12.0"
},
"license": "MIT",
"packageManager": "[email protected]",
"engines": {
"node": ">=18"
}
Expand Down
Loading

0 comments on commit 884c854

Please sign in to comment.