Skip to content

Commit f129e4b

Browse files
authored
Merge pull request #92 from sbt/wip/expand-cache-key2
fix: Adds restore keys to fallback
2 parents 17cbc85 + 72abad3 commit f129e4b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
shell: bash
1818
env:
1919
SBT_RUNNER_VERSION: ${{ inputs.sbt-runner-version }}
20-
SBT_CACHE_KEY_VERSION: 1.1.6
20+
SBT_CACHE_KEY_VERSION: 1.1.25
2121
run: |
2222
if [[ "$RUNNER_OS" == "Windows" ]]; then
2323
echo "sbt_toolpath=$RUNNER_TOOL_CACHE\\sbt\\$SBT_RUNNER_VERSION" >> "$GITHUB_OUTPUT"
@@ -60,6 +60,7 @@ runs:
6060
with:
6161
path: ${{ steps.cache-paths.outputs.sbt_diskcache }}
6262
key: ${{ steps.cache-paths.outputs.sbt_diskcachekey }}-${{ hashFiles('**/*.scala', '**/*.sbt', '**/*.properties') }}
63+
restore-keys: ${{ steps.cache-paths.outputs.sbt_diskcachekey }}
6364
- name: "Download and Install sbt"
6465
shell: bash
6566
env:

example/src/test/scala/example/ATest.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package example
22

33
import munit.*
44

5+
// a
56
class ATest extends FunSuite:
67
test("sum"):
78
assert(1 + 1 == 2)

0 commit comments

Comments
 (0)