Skip to content

Commit

Permalink
chore: add tests in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jillro committed Dec 21, 2024
1 parent a227682 commit 9446faa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"

- name: Install dependencies
run: npm install
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: push

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lezer": "lezer-generator src/search/search.grammar -o src/search/grammar.js",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json",
"lint": "eslint && prettier --check **/*.mjs **/*.ts **/*.svelte"
"lint": "eslint && prettier --check **/*.mjs **/*.ts **/*.svelte",
"test": "node --test --require tsx/cjs **/*.test.ts"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 9446faa

Please sign in to comment.