ci: cache node_modules test

This commit is contained in:
2023-10-26 13:34:38 +02:00
parent 380eb3f3c8
commit ad9b184896
+12 -1
View File
@@ -18,10 +18,21 @@ jobs:
with: with:
node-version: 18.x node-version: 18.x
- name: Yarn - name: Yarn Install
run: | run: |
cd ./frontend cd ./frontend
yarn install --frozen-lockfiles yarn install --frozen-lockfiles
- name: Cache NPM packages
uses: actions/cache@v3
with:
path: |
./frontend/node_modules
restore-keys: |
npm-${{ hashFiles('./frontend/node_modules/package-lock.json') }}
npm-
- name: Yarn Test
run: |
cd ./frontend
./compile-less.sh ./compile-less.sh
yarn test yarn test
yarn build yarn build