@@ -27,48 +27,42 @@ jobs:
27
27
runs-on : ${{ matrix.os }}
28
28
steps :
29
29
- name : Checkout current branch (full)
30
- uses : actions/checkout@v2
30
+ uses : actions/checkout@v4
31
31
with :
32
32
fetch-depth : 0
33
33
34
34
- name : Setup Java (temurin@8)
35
35
if : matrix.java == 'temurin@8'
36
- uses : actions/setup-java@v2
36
+ uses : actions/setup-java@v4
37
37
with :
38
38
distribution : temurin
39
39
java-version : 8
40
+ cache : sbt
40
41
41
42
- name : Setup Java (temurin@11)
42
43
if : matrix.java == 'temurin@11'
43
- uses : actions/setup-java@v2
44
+ uses : actions/setup-java@v4
44
45
with :
45
46
distribution : temurin
46
47
java-version : 11
48
+ cache : sbt
47
49
48
50
- name : Setup Java (temurin@17)
49
51
if : matrix.java == 'temurin@17'
50
- uses : actions/setup-java@v2
52
+ uses : actions/setup-java@v4
51
53
with :
52
54
distribution : temurin
53
55
java-version : 17
56
+ cache : sbt
54
57
55
- - name : Cache sbt
56
- uses : actions/cache@v2
57
- with :
58
- path : |
59
- ~/.sbt
60
- ~/.ivy2/cache
61
- ~/.coursier/cache/v1
62
- ~/.cache/coursier/v1
63
- ~/AppData/Local/Coursier/Cache/v1
64
- ~/Library/Caches/Coursier/v1
65
- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
58
+ - name : Setup sbt
59
+ uses : sbt/setup-sbt@v1
66
60
67
61
- name : Check that workflows are up to date
68
- run : sbt ++ ${{ matrix.scala }} githubWorkflowCheck
62
+ run : sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
69
63
70
64
- name : Build project
71
- run : sbt ++ ${{ matrix.scala }} test
65
+ run : sbt '++ ${{ matrix.scala }}' test
72
66
73
67
- run : ' sbt -Dfile.encoding=UTF8 -J-XX:ReservedCodeCacheSize=256M test'
74
68
0 commit comments