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
This commit is contained in:
parent
e1378702af
commit
097b4f0433
1 changed files with 2 additions and 1 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Add table
Reference in a new issue