mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
ci: cache node_modules test
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user