File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ permissions:
1616
1717env :
1818 NX_NO_CLOUD : true
19+ NX_CACHE_FILES : " modules/*/src/**/*.ts,modules/*/src/**/*.js,modules/*/*.json"
1920
2021jobs :
2122 unit-test :
7475 path : |
7576 .nx/cache
7677 modules/*/dist
77- key : ${{ runner.os }}-nx-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('modules/*/src/**/*.ts', 'modules/*/src/**/*.js', 'modules/*/*.json' ) }}
78+ key : ${{ runner.os }}-nx-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles(env.NX_CACHE_FILES ) }}
7879 restore-keys : |
7980 ${{ runner.os }}-nx-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}-
8081 ${{ runner.os }}-nx-${{ matrix.node-version }}-
@@ -184,7 +185,7 @@ jobs:
184185 path : |
185186 .nx/cache
186187 modules/*/dist
187- key : ${{ runner.os }}-nx-license-${{ hashFiles('yarn.lock') }}-${{ hashFiles('modules/*/src/**/*.ts', 'modules/*/src/**/*.js', 'modules/*/*.json' ) }}
188+ key : ${{ runner.os }}-nx-license-${{ hashFiles('yarn.lock') }}-${{ hashFiles(env.NX_CACHE_FILES ) }}
188189 restore-keys : |
189190 ${{ runner.os }}-nx-license-${{ hashFiles('yarn.lock') }}-
190191 ${{ runner.os }}-nx-license-
@@ -291,7 +292,7 @@ jobs:
291292 path : |
292293 .nx/cache
293294 modules/*/dist
294- key : ${{ runner.os }}-nx-browser-${{ hashFiles('yarn.lock') }}-${{ hashFiles('modules/*/src/**/*.ts', 'modules/*/src/**/*.js', 'modules/*/*.json' ) }}
295+ key : ${{ runner.os }}-nx-browser-${{ hashFiles('yarn.lock') }}-${{ hashFiles(env.NX_CACHE_FILES ) }}
295296 restore-keys : |
296297 ${{ runner.os }}-nx-browser-${{ hashFiles('yarn.lock') }}-
297298 ${{ runner.os }}-nx-browser-
You can’t perform that action at this time.
0 commit comments