Skip to content

Commit cdf5a8d

Browse files
committed
Fix GitHub build issues: update Vitest config, add CI workflow, standardize dependencies
1 parent 4c14a58 commit cdf5a8d

36 files changed

+9061
-8802
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js 20.x
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.x'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Lint
26+
run: npm run lint
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: Test
32+
run: npm run test
33+
34+
- name: Package extension
35+
run: npm run package
36+
37+
test-coverage:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- name: Use Node.js 20.x
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: '20.x'
47+
cache: 'npm'
48+
49+
- name: Install dependencies
50+
run: npm ci
51+
52+
- name: Build
53+
run: npm run build
54+
55+
- name: Test with coverage
56+
run: npm run test:coverage
57+
58+
- name: Upload coverage to Codecov
59+
uses: codecov/codecov-action@v4
60+
with:
61+
file: ./coverage/lcov.info
62+
flags: unittests
63+
name: codecov-umbrella
64+
fail_ci_if_error: false

0 commit comments

Comments
 (0)