Skip to content

Commit

Permalink
fix: ci-cd caching issues (#78)
Browse files Browse the repository at this point in the history
* Fixes for CI-CD caching issues
- changed cache checksum from package.json to use git commit sha1 instead
  • Loading branch information
mdebarros authored Sep 14, 2021
1 parent 8afe278 commit c7716cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
name: Delete build dependencies
command: apk del build-dependencies
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
paths:
- node_modules

Expand All @@ -96,7 +96,7 @@ jobs:
command: *defaults_Dependencies
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: Create dir for test results
command: mkdir -p ./test/results
Expand All @@ -121,7 +121,7 @@ jobs:
- checkout
- restore_cache:
keys:
- dependency-cache-{{ checksum "package.json" }}
- dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: Create dir for test coverage results
command: mkdir -p ./.nyc_output
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
name: Install general dependencies
command: *defaults_Dependencies
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: Create dir for test results
command: mkdir -p ./audit/results
Expand All @@ -173,7 +173,7 @@ jobs:
- run:
<<: *defaults_license_scanner
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: Run the license-scanner
command: cd /tmp/license-scanner && pathToRepo=$CIRCLE_WORKING_DIRECTORY make run
Expand Down

0 comments on commit c7716cc

Please sign in to comment.