diff --git a/.circleci/config.yml b/.circleci/config.yml index ca009b0fb11..cff56609433 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,7 +48,7 @@ node_unit_tests: &node_unit_tests name: Install Dependencies command: yarn install - save_cache: - key: npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }} + key: npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1 paths: - ./node_modules - ./yarn.lock @@ -60,22 +60,19 @@ node_unit_tests: &node_unit_tests - packages/opentelemetry-exporter-prometheus/node_modules - packages/opentelemetry-metrics/node_modules - packages/opentelemetry-tracing/node_modules - - save_cache: - key: npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }} - paths: - packages/opentelemetry-exporter-jaeger/node_modules - packages/opentelemetry-exporter-zipkin/node_modules - packages/opentelemetry-node/node_modules - packages/opentelemetry-shim-opentracing/node_modules - packages/opentelemetry-web/node_modules - packages/opentelemetry-plugin-dns/node_modules + - save_cache: + key: npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1 + paths: - packages/opentelemetry-plugin-grpc/node_modules - packages/opentelemetry-plugin-http/node_modules - packages/opentelemetry-plugin-http2/node_modules - packages/opentelemetry-plugin-mongodb/node_modules - - save_cache: - key: npm-cache-03-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }} - paths: - packages/opentelemetry-plugin-redis/node_modules - packages/opentelemetry-plugin-postgres/opentelemetry-plugin-pg/node_modules - packages/opentelemetry-plugin-document-load/node_modules @@ -86,10 +83,10 @@ node_unit_tests: &node_unit_tests - packages/opentelemetry-types/yarn.lock - packages/opentelemetry-scope-async-hooks/yarn.lock - packages/opentelemetry-core/yarn.lock + - packages/opentelemetry-exporter-prometheus/yarn.lock - save_cache: - key: npm-cache-04-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }} + key: npm-cache-03-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1 paths: - - packages/opentelemetry-exporter-prometheus/yarn.lock - packages/opentelemetry-metrics/yarn.lock - packages/opentelemetry-tracing/yarn.lock - packages/opentelemetry-exporter-jaeger/yarn.lock @@ -99,9 +96,6 @@ node_unit_tests: &node_unit_tests - packages/opentelemetry-web/yarn.lock - packages/opentelemetry-plugin-dns/yarn.lock - packages/opentelemetry-plugin-grpc/yarn.lock - - save_cache: - key: npm-cache-05-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }} - paths: - packages/opentelemetry-plugin-http/yarn.lock - packages/opentelemetry-plugin-http2/yarn.lock - packages/opentelemetry-plugin-mongodb/yarn.lock