Skip to content

Commit e4b6c0e

Browse files
committed
finalise caching logic
1 parent c4f1f69 commit e4b6c0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ jobs:
1616
with:
1717
node-version: "${{ matrix.node-version }}"
1818

19-
- name: Install elm, elm-format and cache the ELM_HOME directory
19+
- name: Install elm, elm-test-rs
2020
uses: mpizenberg/[email protected]
2121
with:
22-
cache-key: elm-home-${{ hashFiles('elm-tooling.json', 'elm.json') }}
22+
# The global elm home is _only_ used by elm-tooling to store
23+
# installed binaries. For testing we set up our own local elm_home
24+
# (and clear it before each run) so we are free to cache elm home
25+
# regardless of the packages we use for testing.
26+
cache-key: elm-home-${{ hashFiles('elm-tooling.json') }}
2327

2428
- name: Run tests
2529
run: ./tests/run-tests.sh

0 commit comments

Comments
 (0)