Change CircleCI npm caching to be more aggressive

Make sure static files build happens before linting
pull/7803/head
Thibaud Colas 2021-12-02 09:15:34 +00:00 zatwierdzone przez LB (Ben Johnston)
rodzic 7523d65d84
commit a6a71937b8
1 zmienionych plików z 9 dodań i 9 usunięć
.circleci

Wyświetl plik

@ -36,20 +36,20 @@ jobs:
steps:
- checkout
- restore_cache:
keys:
- node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
- node-v1-{{ .Branch }}-
- node-v1-
- run: npm install --no-save
key: frontend-v1-{{ checksum "package-lock.json" }}
# Only install if node_modules wasnt cached.
- run: |
if [[ ! -e "node_modules" ]]; then
npm install --no-save --no-optional --no-audit --no-fund --progress=false
fi
- save_cache:
paths:
- ~/project/node_modules/
key: node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
- run: npm run build
- node_modules
key: frontend-v1-{{ checksum "package-lock.json" }}
- run: npm run dist
- run: npm run lint:js
- run: npm run lint:css
- run: npm run test:unit:coverage -- --runInBand
- run: npm run dist
- run: bash <(curl -s https://codecov.io/bash) -F frontend
nightly-build: