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

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
pull/6213/head
Simon Pasquier 5 years ago committed by GitHub
parent 4fb9f1605f
commit 3cb0a9d955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save