File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,29 @@ jobs:
12
12
with :
13
13
node-version : 16
14
14
- name : Cache node modules
15
+ id : cache-npm
15
16
uses : actions/cache@v3
17
+ env :
18
+ cache-name : cache-node-modules
16
19
with :
17
- path : ~/.npm
18
- key : ${{ runner.os }}-node -${{ hashFiles('**/package-lock.json') }}
20
+ path : ./node_modules
21
+ key : ${{ runner.os }}-build-${{ env.cache-name }} -${{ hashFiles('**/package-lock.json') }}
19
22
restore-keys : |
20
- ${{ runner.os }}-node-
21
- - name : Install dependencies and build
22
- run : |
23
- npm ci
24
- npm run build
23
+ ${{ runner.os }}-build-${{ env.cache-name }}-
24
+ ${{ runner.os }}-build-
25
+ ${{ runner.os }}-
26
+ - name : Cache Eslint
27
+ uses : actions/cache@v3
28
+ with :
29
+ path : ./.eslintcache
30
+ key : eslintcache-${{github.sha}}
31
+ restore-keys : |
32
+ eslintcache-
33
+ - name : Install Dependencies
34
+ if : steps.cache-npm.outputs.cache-hit != 'true'
35
+ run : npm ci
36
+ - name : Build
37
+ run : npm run build
25
38
- name : Run Prettier
26
39
run : npm run format:check
27
40
- name : Run ESLint
Original file line number Diff line number Diff line change 11
11
"start" : " ng serve" ,
12
12
"build" : " ng build" ,
13
13
"test" : " ng test" ,
14
- "lint" : " nx run-many --all --target=lint" ,
14
+ "lint" : " nx run-many --all --target=lint --cache " ,
15
15
"e2e" : " ng e2e admin-gui-e2e --watch" ,
16
16
"affected:apps" : " nx affected:apps" ,
17
17
"affected:libs" : " nx affected:libs" ,
You can’t perform that action at this time.
0 commit comments