Skip to content

Commit

Permalink
CircleCI : checksum pour fichiers Webpack et yarn.lock (#4382)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti authored Dec 12, 2024
1 parent 8f57b87 commit 97e30af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ jobs:
- ~/transport/deps
- ~/.mix

- run:
name: Create checksum for JS files
command: cd ~/transport/apps/transport/client && shasum webpack.*.js yarn.lock > /tmp/js-checksum

- restore_cache:
keys:
- js-<< parameters.js_cache_key >>-{{ checksum "apps/transport/client/yarn.lock" }}
- js-<< parameters.js_cache_key >>-{{ checksum "/tmp/js-checksum" }}
- js-<< parameters.js_cache_key >>

- run:
Expand All @@ -113,7 +117,7 @@ jobs:
command: cd ~/transport/apps/transport/client && npm run build

- save_cache:
key: js-<< parameters.js_cache_key >>-{{ checksum "apps/transport/client/yarn.lock" }}
key: js-<< parameters.js_cache_key >>-{{ checksum "/tmp/js-checksum" }}
paths:
- ~/transport/apps/transport/client/node_modules
- ~/transport/apps/transport/priv/static
Expand Down

0 comments on commit 97e30af

Please sign in to comment.