From 097b4f04333f90028d8052cf4cf4a1f1126cedcc Mon Sep 17 00:00:00 2001 From: syeopite Date: Mon, 20 Jan 2025 16:39:33 -0800 Subject: [PATCH] CI: Use separate shards cache for lint step Ameba could be built with an older version of Crystal that follows a different set of formatting rules than the latest version causing the Lint/Formatting rule to fail when in actuality the code is actually compliant with the formatting rules in the latest version of Crystal --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd472d1a..cebc0602 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,6 +136,7 @@ jobs: submodules: true - name: Install Crystal + id: lint_step_install_crystal uses: crystal-lang/install-crystal@v1.8.0 with: crystal: latest @@ -146,7 +147,7 @@ jobs: path: | ./lib ./bin - key: shards-${{ hashFiles('shard.lock') }} + key: shards-${{ hashFiles('shard.lock') }}-${{ steps.lint_step_install_crystal.outputs.crystal }} - name: Install Shards run: |