Skip to content

Commit e5c7ebf

Browse files
committed
Add tests to CI and update Node.js to 24
- Update Node.js version from 20 to 24 in both workflows - Add test step (npm run test) before build - Add type check step (npm run build:types) before build - Update source zip file list in release workflow for new file names
1 parent 6a953e6 commit e5c7ebf

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Node.js
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: '20'
20+
node-version: '24'
2121
cache: 'npm'
2222

2323
- name: Install dependencies
@@ -26,6 +26,12 @@ jobs:
2626
- name: Lint
2727
run: npm run lint
2828

29+
- name: Run tests
30+
run: npm run test
31+
32+
- name: Type check
33+
run: npm run build:types
34+
2935
- name: Build
3036
run: npm run build
3137

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: '20'
22+
node-version: '24'
2323
cache: 'npm'
2424

2525
- name: Install dependencies
@@ -28,6 +28,12 @@ jobs:
2828
- name: Lint
2929
run: npm run lint
3030

31+
- name: Run tests
32+
run: npm run test
33+
34+
- name: Type check
35+
run: npm run build:types
36+
3137
- name: Build
3238
run: npm run build
3339

@@ -51,16 +57,19 @@ jobs:
5157
package.json \
5258
package-lock.json \
5359
tsconfig.json \
54-
build.js \
60+
vitest.config.ts \
61+
eslint.config.js \
62+
build.cjs \
5563
README.md \
5664
LICENSE \
5765
.gitignore \
58-
.eslintrc.json \
5966
.prettierrc \
67+
.node-version \
6068
docs/ \
6169
extension/src/ \
6270
extension/icons/ \
63-
extension/manifest.json
71+
extension/manifest.json \
72+
tests/
6473
6574
- name: Create GitHub Release
6675
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)