Skip to content

Commit 98e4f8d

Browse files
committed
devops: add GitHub Actions
1 parent 852709c commit 98e4f8d

File tree

5 files changed

+84
-6
lines changed

5 files changed

+84
-6
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 18
19+
20+
- run: npm ci
21+
- run: npm run build
22+
- run: npx playwright install chromium --with-deps
23+
- run: npx playwright test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
lib/
22
node_modules/
3+
test-results/

package-lock.json

Lines changed: 57 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@
3737
"devDependencies": {
3838
"@eslint/eslintrc": "^3.2.0",
3939
"@eslint/js": "^9.19.0",
40+
"@playwright/test": "^1.51.1",
4041
"@stylistic/eslint-plugin": "^3.0.1",
42+
"@types/node": "^18.19.81",
4143
"@typescript-eslint/eslint-plugin": "^8.26.1",
4244
"@typescript-eslint/parser": "^8.26.1",
4345
"@typescript-eslint/utils": "^8.26.1",
44-
"@types/node": "^22.13.10",
4546
"eslint": "^9.19.0",
4647
"eslint-plugin-import": "^2.31.0",
4748
"eslint-plugin-notice": "^1.0.0",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"esModuleInterop": true,
66
"moduleResolution": "node",
77
"strict": true,
8-
"module": "ESNext",
8+
"module": "CommonJS",
99
"outDir": "./lib"
1010
},
1111
"include": [

0 commit comments

Comments
 (0)