Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Sane CI caches PoC - Cypress (#64932)

Nemanja Glumac2c71824e615d
diff --git a/.github/actions/prepare-cypress/action.yml b/.github/actions/prepare-cypress/action.yml
index 8d58b19f64b..a35a679304f 100644
--- a/.github/actions/prepare-cypress/action.yml
+++ b/.github/actions/prepare-cypress/action.yml
@@ -22,11 +22,16 @@ runs:
chrome-version: 1097615
id: setup-chrome
+ - name: Get current week of year
+ id: get-date
+ run: |
+ echo "week-of-year=$(/bin/date "+%G-%V")" >> $GITHUB_OUTPUT
+ shell: bash
- name: Get Cypress cache
uses: actions/cache@v4
with:
path: ~/.cache/Cypress
- key: ${{ runner.os }}-Cypress-${{ hashFiles('**/yarn.lock') }}
+ key: ${{ runner.os }}-Cypress-${{ steps.get-date.outputs.week-of-year }}
- name: Ensure that Cypress executable is ready
run: |
yarn cypress install