.circleci/config.yml: cache dependencies (#6181)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2019-10-24 10:43:22 +02:00 committed by GitHub
parent 4fb9f1605f
commit 3cb0a9d955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,7 @@ version: 2.1
orbs:
prometheus: prometheus/prometheus@0.3.0
go: circleci/go@0.2.0
executors:
# Whenever the Go version is updated here, .travis.yml and .promu.yml
@ -21,6 +22,12 @@ jobs:
steps:
- prometheus/setup_environment
- go/load-cache:
key: v1
- restore_cache:
keys:
- v1-npm-deps-{{ checksum "web/ui/react-app/yarn.lock" }}
- v1-npm-deps-
- run:
command: make
environment:
@ -36,6 +43,12 @@ jobs:
file: prometheus
- prometheus/store_artifact:
file: promtool
- go/save-cache:
key: v1
- save_cache:
key: v1-npm-deps-{{ checksum "web/ui/react-app/yarn.lock" }}
paths:
- web/ui/react-app/node_modules
fuzzit_regression:
executor: fuzzit
working_directory: /go/src/github.com/prometheus/prometheus