File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ - develop
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+
16
+ - name : Cache node modules
17
+ id : cache-npm
18
+ uses : actions/cache@v3
19
+
20
+ env :
21
+ cache-name : cache-node-modules
22
+ with :
23
+ # npm cache files are stored in `~/.npm` on Linux/macOS
24
+ path : ~/.npm
25
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-build-${{ env.cache-name }}-
28
+ ${{ runner.os }}-build-
29
+ ${{ runner.os }}-
30
+
31
+ - if : ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
32
+ name : List the state of node modules
33
+ continue-on-error : true
34
+ run : npm list
35
+
36
+ - name : NPM install
37
+ run : npm install
38
+
39
+ - name : Build
40
+ run : npm run build
41
+
42
+ - name : Lint & Format
43
+ run : npm run lint
You can’t perform that action at this time.
0 commit comments