kopia lustrzana https://github.com/wagtail/wagtail
Change CircleCI npm caching to be more aggressive
Make sure static files build happens before lintingpull/7803/head
rodzic
7523d65d84
commit
a6a71937b8
.circleci
|
@ -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 wasn’t 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:
|
||||
|
|
Ładowanie…
Reference in New Issue