Skip to content

Commit af73aa1

Browse files
committed
fix: Simplify CI workflow to single job
1 parent 5c43f49 commit af73aa1

File tree

1 file changed

+8
-37
lines changed

1 file changed

+8
-37
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,7 @@ on:
77
branches: [main]
88

99
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:
10+
ci:
3811
runs-on: ubuntu-latest
3912

4013
steps:
@@ -43,22 +16,20 @@ jobs:
4316
- name: Use Node.js 20.x
4417
uses: actions/setup-node@v4
4518
with:
46-
node-version: '20.x'
47-
cache: 'npm'
19+
node-version: "20.x"
20+
cache: "npm"
4821

4922
- name: Install dependencies
5023
run: npm ci
5124

25+
- name: Lint
26+
run: npm run lint
27+
5228
- name: Build
5329
run: npm run build
5430

5531
- name: Test with coverage
5632
run: npm run test:coverage
5733

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
34+
- name: Package extension
35+
run: npm run package

0 commit comments

Comments
 (0)