Skip to content

Commit 1d300b4

Browse files
committed
Refactor CI workflow for improved readability and consistency. Standardize formatting in the GitHub Actions configuration, ensuring uniform spacing and indentation across all job steps.
1 parent 230da9b commit 1d300b4

File tree

1 file changed

+69
-69
lines changed

1 file changed

+69
-69
lines changed

.github/workflows/ci.yml

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2,89 +2,89 @@ name: CI
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, 22.x]
16-
16+
1717
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v4
20-
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v4
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
cache: 'npm'
26-
27-
- name: Install dependencies
28-
run: npm ci
29-
30-
- name: Run linter
31-
run: npm run lint
32-
33-
- name: Run tests
34-
run: npm run test:coverage
35-
36-
- name: Build project
37-
run: npm run build
38-
39-
- name: Upload coverage reports to Codecov
40-
if: matrix.node-version == '20.x'
41-
uses: codecov/codecov-action@v3
42-
with:
43-
file: ./coverage/lcov.info
44-
flags: unittests
45-
name: codecov-umbrella
46-
fail_ci_if_error: false
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: "npm"
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run linter
31+
run: npm run lint
32+
33+
- name: Run tests
34+
run: npm run test:coverage
35+
36+
- name: Build project
37+
run: npm run build
38+
39+
- name: Upload coverage reports to Codecov
40+
if: matrix.node-version == '20.x'
41+
uses: codecov/codecov-action@v3
42+
with:
43+
file: ./coverage/lcov.info
44+
flags: unittests
45+
name: codecov-umbrella
46+
fail_ci_if_error: false
4747

4848
lint:
4949
runs-on: ubuntu-latest
50-
50+
5151
steps:
52-
- name: Checkout code
53-
uses: actions/checkout@v4
54-
55-
- name: Use Node.js 20.x
56-
uses: actions/setup-node@v4
57-
with:
58-
node-version: 20.x
59-
cache: 'npm'
60-
61-
- name: Install dependencies
62-
run: npm ci
63-
64-
- name: Run linter
65-
run: npm run lint
52+
- name: Checkout code
53+
uses: actions/checkout@v4
54+
55+
- name: Use Node.js 20.x
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: 20.x
59+
cache: "npm"
60+
61+
- name: Install dependencies
62+
run: npm ci
63+
64+
- name: Run linter
65+
run: npm run lint
6666

6767
build:
6868
runs-on: ubuntu-latest
69-
69+
7070
steps:
71-
- name: Checkout code
72-
uses: actions/checkout@v4
73-
74-
- name: Use Node.js 20.x
75-
uses: actions/setup-node@v4
76-
with:
77-
node-version: 20.x
78-
cache: 'npm'
79-
80-
- name: Install dependencies
81-
run: npm ci
82-
83-
- name: Build project
84-
run: npm run build
85-
86-
- name: Check build artifacts
87-
run: |
88-
ls -la dist/
89-
test -f dist/index.js
90-
test -f dist/index.d.ts
71+
- name: Checkout code
72+
uses: actions/checkout@v4
73+
74+
- name: Use Node.js 20.x
75+
uses: actions/setup-node@v4
76+
with:
77+
node-version: 20.x
78+
cache: "npm"
79+
80+
- name: Install dependencies
81+
run: npm ci
82+
83+
- name: Build project
84+
run: npm run build
85+
86+
- name: Check build artifacts
87+
run: |
88+
ls -la dist/
89+
test -f dist/index.js
90+
test -f dist/index.d.ts

0 commit comments

Comments
 (0)