@@ -2,89 +2,89 @@ name: CI
2
2
3
3
on :
4
4
push :
5
- branches : [ main, develop ]
5
+ branches : [main, develop]
6
6
pull_request :
7
- branches : [ main, develop ]
7
+ branches : [main, develop]
8
8
9
9
jobs :
10
10
test :
11
11
runs-on : ubuntu-latest
12
-
12
+
13
13
strategy :
14
14
matrix :
15
15
node-version : [18.x, 20.x, 22.x]
16
-
16
+
17
17
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
47
47
48
48
lint :
49
49
runs-on : ubuntu-latest
50
-
50
+
51
51
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
66
66
67
67
build :
68
68
runs-on : ubuntu-latest
69
-
69
+
70
70
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