The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Add cache restore keys for M2 and Node modules (#70370)
Nemanja Glumacc5b8eef4d920
diff --git a/.github/actions/get-cache-keys/action.yml b/.github/actions/get-cache-keys/action.ymlindex 148468fea0d..79e163130f9 100644--- a/.github/actions/get-cache-keys/action.yml+++ b/.github/actions/get-cache-keys/action.yml@@ -7,9 +7,15 @@ outputs:m2-cache-key:description: "The cache key for the Maven cache."value: ${{ steps.keys-factory.outputs.m2-cache-key }}+ m2-restore-key:+ description: "The fallback restore key prefix for the Maven cache."+ value: ${{ steps.keys-factory.outputs.m2-restore-key }}node-cache-key:description: "The cache key for the Node.js cache."value: ${{ steps.keys-factory.outputs.node-cache-key }}+ node-restore-key:+ description: "The fallback restore key prefix for the Node.js cache."+ value: ${{ steps.keys-factory.outputs.node-restore-key }}eslint-cache-key:description: "The cache key for Eslint cache"value: ${{ steps.keys-factory.outputs.eslint-cache-key }}@@ -31,7 +37,9 @@ runs:CACHE_SUFFIX="${{ runner.os }}-$WEEK_OF_YEAR"echo "m2-cache-key=$M2_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUT+ echo "m2-restore-key=$M2_CACHE_PREFIX-" >> $GITHUB_OUTPUTecho "node-cache-key=$NODE_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUT+ echo "node-restore-key=$NODE_CACHE_PREFIX-" >> $GITHUB_OUTPUTecho "eslint-cache-key=$ESLINT_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUTecho "cypress-cache-key=$CYPRESS_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUTshell: bashdiff --git a/.github/actions/prepare-backend/action.yml b/.github/actions/prepare-backend/action.ymlindex c0315541e44..c37d4176845 100644--- a/.github/actions/prepare-backend/action.yml+++ b/.github/actions/prepare-backend/action.yml@@ -42,3 +42,5 @@ runs:~/.m2~/.gitlibskey: ${{ steps.get-cache-keys.outputs.m2-cache-key }}+ restore-keys: |+ ${{ steps.get-cache-keys.outputs.m2-restore-key }}diff --git a/.github/actions/prepare-frontend/action.yml b/.github/actions/prepare-frontend/action.ymlindex d6b5e0d13ac..ce0fbbaec3d 100644--- a/.github/actions/prepare-frontend/action.yml+++ b/.github/actions/prepare-frontend/action.yml@@ -34,6 +34,8 @@ runs:~/.m2~/.gitlibskey: ${{ steps.get-cache-keys.outputs.m2-cache-key }}+ restore-keys: |+ ${{ steps.get-cache-keys.outputs.m2-restore-key }}- name: Get bun cache directoryid: bun-cache@@ -51,6 +53,8 @@ runs:${{ steps.bun-cache.outputs.dir }}node_moduleskey: ${{ steps.get-cache-keys.outputs.node-cache-key }}+ restore-keys: |+ ${{ steps.get-cache-keys.outputs.node-restore-key }}# postinstall lifecycle hook can be dangerous in CI so we only run it locally (see package.json)# If a job wants to patch packages, it does so explicitly in the CI. This setting is opt-out.