Commit b6d8995 1 parent cac079b commit b6d8995 Copy full SHA for b6d8995
File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Code analysis
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - develop
7
+ - main
8
+ pull_request :
9
+ branches :
10
+ - develop
11
+ - main
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ node-version : [21.x]
20
+
21
+ steps :
22
+ - name : Checkout repository
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Set up Node.js ${{ matrix.node-version }}
26
+ uses : actions/setup-node@v4
27
+
28
+ - name : Cache dependencies
29
+ uses : actions/cache@v3
30
+ with :
31
+ path : |
32
+ **/node_modules
33
+ key : ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
34
+
35
+ - name : Install dependencies
36
+ run : npm install
37
+
38
+ - name : Build code
39
+ run : npm run build
40
+
41
+ - name : Run tests
42
+ run : CI=true npm run test-coverage
43
+
You can’t perform that action at this time.
0 commit comments