From 97e30afa24c972e7a4ac8b5cc08b293c44e9e1ad Mon Sep 17 00:00:00 2001 From: Antoine Augusti Date: Thu, 12 Dec 2024 15:17:41 +0100 Subject: [PATCH] CircleCI : checksum pour fichiers Webpack et yarn.lock (#4382) --- .circleci/config.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f6bf1f157..030d16565f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -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