Skip to content

A local-first personal finance app

[AI] DX: fix CI Lage cache (#8305)

Matiss Janis Aboltins2825f52138fb
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 47f47aefac..b18ed28fc3 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -48,7 +48,7 @@ runs:
yarn-dl-${{ runner.os }}-${{ steps.get-node.outputs.version }}-
yarn-dl-${{ runner.os }}-
- name: Ensure Lage cache directory exists
- run: mkdir -p "$WORKING_DIRECTORY/.lage"
+ run: mkdir -p "$WORKING_DIRECTORY/node_modules/.cache/lage"
shell: bash
env:
WORKING_DIRECTORY: ${{ inputs.working-directory }}
@@ -56,7 +56,7 @@ runs:
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
if: ${{ inputs.cache == 'true' }}
with:
- path: ${{ format('{0}/.lage', inputs.working-directory) }}
+ path: ${{ format('{0}/node_modules/.cache/lage', inputs.working-directory) }}
key: lage-${{ runner.os }}-${{ github.sha }}
restore-keys: |
lage-${{ runner.os }}-
diff --git a/upcoming-release-notes/fix-ci-lage-cache.md b/upcoming-release-notes/fix-ci-lage-cache.md
new file mode 100644
index 0000000000..5187a1a0b0
--- /dev/null
+++ b/upcoming-release-notes/fix-ci-lage-cache.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [MatissJanis]
+---
+
+Cache Lage's real cache directory in CI so build and test results are reused across runs