mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-17 06:18:09 +00:00
Cache yarn on CircleCi, Ref. #48
This commit is contained in:
@ -14,6 +14,14 @@ jobs:
|
|||||||
sudo systemsetup -settimezone Europe/Warsaw
|
sudo systemsetup -settimezone Europe/Warsaw
|
||||||
echo "Today is $(date +"%Y-%m-%d %T")"
|
echo "Today is $(date +"%Y-%m-%d %T")"
|
||||||
|
|
||||||
|
- restore_cache:
|
||||||
|
name: Restore Yarn Package Cache
|
||||||
|
keys:
|
||||||
|
- yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||||
|
- yarn-packages-{{ .Branch }}
|
||||||
|
- yarn-packages-master
|
||||||
|
- yarn-packages-
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install project
|
name: Install project
|
||||||
# there is an issue with yarn and cache during executed on CI; for now we just run it twice, second should
|
# there is an issue with yarn and cache during executed on CI; for now we just run it twice, second should
|
||||||
@ -22,6 +30,12 @@ jobs:
|
|||||||
yarn || true
|
yarn || true
|
||||||
yarn || true
|
yarn || true
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
name: Save Yarn Package Cache
|
||||||
|
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Building WebUI for distribution
|
name: Building WebUI for distribution
|
||||||
command: |
|
command: |
|
||||||
|
Reference in New Issue
Block a user