@@ -28,50 +28,43 @@ jobs:
2828 runs-on : ${{ matrix.os }}
2929 steps :
3030 - name : Checkout current branch (full)
31- uses : actions/checkout@v2
31+ uses : actions/checkout@v4
3232 with :
3333 fetch-depth : 0
3434
3535 - name : Setup Java (temurin@8)
3636 if : matrix.java == 'temurin@8'
37- uses : actions/setup-java@v2
37+ uses : actions/setup-java@v4
3838 with :
3939 distribution : temurin
4040 java-version : 8
41+ cache : sbt
4142
4243 - name : Setup Java (temurin@17)
4344 if : matrix.java == 'temurin@17'
44- uses : actions/setup-java@v2
45+ uses : actions/setup-java@v4
4546 with :
4647 distribution : temurin
4748 java-version : 17
49+ cache : sbt
4850
49- - name : Cache sbt
50- uses : actions/cache@v2
51- with :
52- path : |
53- ~/.sbt
54- ~/.ivy2/cache
55- ~/.coursier/cache/v1
56- ~/.cache/coursier/v1
57- ~/AppData/Local/Coursier/Cache/v1
58- ~/Library/Caches/Coursier/v1
59- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
51+ - name : Setup sbt
52+ uses : sbt/setup-sbt@v1
6053
6154 - name : Check formatting
62- run : sbt ++ ${{ matrix.scala }} scalafmtCheckAll scalafmtSbtCheck
55+ run : sbt '++ ${{ matrix.scala }}' scalafmtCheckAll scalafmtSbtCheck
6356
6457 - name : Check that workflows are up to date
65- run : sbt ++ ${{ matrix.scala }} githubWorkflowCheck
58+ run : sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
6659
6760 - name : Build project
68- run : sbt ++ ${{ matrix.scala }} test
61+ run : sbt '++ ${{ matrix.scala }}' test
6962
7063 - name : Compress target directories
7164 run : tar cf targets.tar target modules/tail-sampling-caffeine/target modules/tail-sampling-cache-store/target modules/tail-sampling-redis-store/target project/target
7265
7366 - name : Upload target directories
74- uses : actions/upload-artifact@v2
67+ uses : actions/upload-artifact@v4
7568 with :
7669 name : target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
7770 path : targets.tar
@@ -88,38 +81,31 @@ jobs:
8881 runs-on : ${{ matrix.os }}
8982 steps :
9083 - name : Checkout current branch (full)
91- uses : actions/checkout@v2
84+ uses : actions/checkout@v4
9285 with :
9386 fetch-depth : 0
9487
9588 - name : Setup Java (temurin@8)
9689 if : matrix.java == 'temurin@8'
97- uses : actions/setup-java@v2
90+ uses : actions/setup-java@v4
9891 with :
9992 distribution : temurin
10093 java-version : 8
94+ cache : sbt
10195
10296 - name : Setup Java (temurin@17)
10397 if : matrix.java == 'temurin@17'
104- uses : actions/setup-java@v2
98+ uses : actions/setup-java@v4
10599 with :
106100 distribution : temurin
107101 java-version : 17
102+ cache : sbt
108103
109- - name : Cache sbt
110- uses : actions/cache@v2
111- with :
112- path : |
113- ~/.sbt
114- ~/.ivy2/cache
115- ~/.coursier/cache/v1
116- ~/.cache/coursier/v1
117- ~/AppData/Local/Coursier/Cache/v1
118- ~/Library/Caches/Coursier/v1
119- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
104+ - name : Setup sbt
105+ uses : sbt/setup-sbt@v1
120106
121107 - name : Download target directories (2.13.8)
122- uses : actions/download-artifact@v2
108+ uses : actions/download-artifact@v4
123109 with :
124110 name : target-${{ matrix.os }}-2.13.8-${{ matrix.java }}
125111
@@ -129,7 +115,7 @@ jobs:
129115 rm targets.tar
130116
131117 - name : Download target directories (2.12.16)
132- uses : actions/download-artifact@v2
118+ uses : actions/download-artifact@v4
133119 with :
134120 name : target-${{ matrix.os }}-2.12.16-${{ matrix.java }}
135121
@@ -139,7 +125,7 @@ jobs:
139125 rm targets.tar
140126
141127 - name : Download target directories (3.1.3)
142- uses : actions/download-artifact@v2
128+ uses : actions/download-artifact@v4
143129 with :
144130 name : target-${{ matrix.os }}-3.1.3-${{ matrix.java }}
145131
@@ -159,4 +145,4 @@ jobs:
159145 env :
160146 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
161147 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
162- run : sbt ++${{ matrix.scala }} ciReleaseSonatype
148+ run : sbt ciReleaseSonatype
0 commit comments