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
Stabilize and deduplicate eslint cache (#65410)
Nemanja Glumac43301c49ad8e
diff --git a/.github/actions/get-cache-keys/action.yml b/.github/actions/get-cache-keys/action.ymlindex a2cf8716fcd..91975a1bce5 100644--- a/.github/actions/get-cache-keys/action.yml+++ b/.github/actions/get-cache-keys/action.yml@@ -10,6 +10,9 @@ outputs:node-cache-key:description: "The cache key for the Node.js cache."value: ${{ steps.keys-factory.outputs.node-cache-key }}+ eslint-cache-key:+ description: "The cache key for Eslint cache"+ value: ${{ steps.keys-factory.outputs.eslint-cache-key }}runs:using: "composite"@@ -19,9 +22,11 @@ runs:run: |M2_CACHE_PREFIX='M2'NODE_CACHE_PREFIX='node-modules'+ ESLINT_CACHE_PREFIX='eslint'WEEK_OF_YEAR=$(/bin/date "+%G-%V")CACHE_SUFFIX="${{ runner.os }}-$WEEK_OF_YEAR"echo "m2-cache-key=$M2_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUTecho "node-cache-key=$NODE_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUT+ echo "eslint-cache-key=$ESLINT_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUTshell: bashdiff --git a/.github/workflows/cache-generator.yml b/.github/workflows/cache-generator.ymlindex 3c321d80c1d..999056c5289 100644--- a/.github/workflows/cache-generator.yml+++ b/.github/workflows/cache-generator.yml@@ -48,6 +48,7 @@ jobs:outputs:m2-cache-key: ${{ steps.get-cache-keys.outputs.m2-cache-key }}node-cache-key: ${{ steps.get-cache-keys.outputs.node-cache-key }}+ eslint-cache-key: ${{ steps.get-cache-keys.outputs.eslint-cache-key }}generate-m2-cache:runs-on: ubuntu-22.04@@ -73,12 +74,13 @@ jobs:~/.gitlibskey: ${{ env.M2_CACHE_KEY }}- generate-node-modules-cache:+ generate-frontend-caches:runs-on: ubuntu-22.04timeout-minutes: 15needs: get-cache-keysenv:NODE_CACHE_KEY: ${{ needs.get-cache-keys.outputs.node-cache-key }}+ ESLINT_CACHE_KEY: ${{ needs.get-cache-keys.outputs.eslint-cache-key }}steps:- uses: actions/checkout@v4# `prepare-frontend` action (1) prepares Node.js and (2) fetches the node_modules cache if it exists.@@ -97,3 +99,9 @@ jobs:with:path: node_moduleskey: ${{ env.NODE_CACHE_KEY }}++ - name: Update eslint cache+ uses: ./.github/actions/update-cache+ with:+ path: .eslintcache+ key: ${{ env.ESLINT_CACHE_KEY }}diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.ymlindex 4f7600422a9..870ddad40ae 100644--- a/.github/workflows/frontend.yml+++ b/.github/workflows/frontend.yml@@ -35,13 +35,16 @@ jobs:uses: ./.github/actions/prepare-frontend- name: Prepare back-end environmentuses: ./.github/actions/prepare-backend++ - name: Get Eslint cache key+ uses: ./.github/actions/get-cache-keys+ id: get-cache-keys- name: Restore ESLint cache- uses: actions/cache@v4+ uses: actions/cache/restore@v4with:path: .eslintcache- key: eslintcache-${{ hashFiles('yarn.lock', '.eslintrc.js') }}- restore-keys: |- eslintcache-+ key: ${{ steps.get-cache-keys.outputs.eslint-cache-key }}+- name: Compile CLJSrun: yarn build-pure:cljs- name: Find CSS variables that are used but never defined