Skip to content

Commit 878d046

Browse files
committed
chore: fix test workflow in github
1 parent f355bf1 commit 878d046

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

.github/workflows/test.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@ name: Test
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [ main, develop ]
7+
branches: [main, develop]
88

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
12+
1313
strategy:
1414
matrix:
1515
node-version: [18.x, 20.x]
16-
16+
1717
steps:
18-
- uses: actions/checkout@v3
19-
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
cache: 'npm'
25-
26-
- name: Install dependencies
27-
run: npm ci
28-
29-
- name: Run type check
30-
run: npm run type-check
31-
32-
- name: Run linting
33-
run: npm run lint
34-
35-
- name: Run tests
36-
run: npm run test:ci
37-
38-
- name: Upload coverage to Codecov
39-
uses: codecov/codecov-action@v3
40-
with:
41-
file: ./coverage/lcov.info
42-
flags: unittests
43-
name: codecov-umbrella
18+
- uses: actions/checkout@v3
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm install
28+
29+
- name: Run type check
30+
run: npm run type-check
31+
32+
- name: Run linting
33+
run: npm run lint
34+
35+
- name: Run tests
36+
run: npm run test:ci
37+
38+
- name: Upload coverage to Codecov
39+
uses: codecov/codecov-action@v3
40+
with:
41+
file: ./coverage/lcov.info
42+
flags: unittests
43+
name: codecov-umbrella

0 commit comments

Comments
 (0)