@@ -24,25 +24,24 @@ concurrency:
2424
2525jobs :
2626 build :
27- name : Build and Test
27+ name : Test
2828 strategy :
2929 matrix :
30- os : [ubuntu-latest ]
30+ os : [ubuntu-22.04 ]
3131 scala : [2.12, 2.13, 3]
3232 java : [temurin@11]
3333 project : [diffsonJVM, diffsonJS, diffsonNative]
3434 runs-on : ${{ matrix.os }}
3535 timeout-minutes : 60
3636 steps :
37- - name : Install sbt
38- if : contains(runner.os, 'macos')
39- run : brew install sbt
40-
4137 - name : Checkout current branch (full)
4238 uses : actions/checkout@v4
4339 with :
4440 fetch-depth : 0
4541
42+ - name : Setup sbt
43+ uses : sbt/setup-sbt@v1
44+
4645 - name : Setup Java (temurin@11)
4746 id : setup-java-temurin-11
4847 if : matrix.java == 'temurin@11'
6059 run : sbt githubWorkflowCheck
6160
6261 - name : Check headers and formatting
63- if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest '
62+ if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-22.04 '
6463 run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck
6564
6665 - name : scalaJSLink
@@ -75,11 +74,11 @@ jobs:
7574 run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test
7675
7776 - name : Check binary compatibility
78- if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest '
77+ if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-22.04 '
7978 run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues
8079
8180 - name : Generate API documentation
82- if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest '
81+ if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-22.04 '
8382 run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc
8483
8584 - name : Make target directories
@@ -103,19 +102,18 @@ jobs:
103102 if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
104103 strategy :
105104 matrix :
106- os : [ubuntu-latest ]
105+ os : [ubuntu-22.04 ]
107106 java : [temurin@11]
108107 runs-on : ${{ matrix.os }}
109108 steps :
110- - name : Install sbt
111- if : contains(runner.os, 'macos')
112- run : brew install sbt
113-
114109 - name : Checkout current branch (full)
115110 uses : actions/checkout@v4
116111 with :
117112 fetch-depth : 0
118113
114+ - name : Setup sbt
115+ uses : sbt/setup-sbt@v1
116+
119117 - name : Setup Java (temurin@11)
120118 id : setup-java-temurin-11
121119 if : matrix.java == 'temurin@11'
@@ -248,19 +246,18 @@ jobs:
248246 if : github.event.repository.fork == false && github.event_name != 'pull_request'
249247 strategy :
250248 matrix :
251- os : [ubuntu-latest ]
249+ os : [ubuntu-22.04 ]
252250 java : [temurin@11]
253251 runs-on : ${{ matrix.os }}
254252 steps :
255- - name : Install sbt
256- if : contains(runner.os, 'macos')
257- run : brew install sbt
258-
259253 - name : Checkout current branch (full)
260254 uses : actions/checkout@v4
261255 with :
262256 fetch-depth : 0
263257
258+ - name : Setup sbt
259+ uses : sbt/setup-sbt@v1
260+
264261 - name : Setup Java (temurin@11)
265262 id : setup-java-temurin-11
266263 if : matrix.java == 'temurin@11'
@@ -284,7 +281,7 @@ jobs:
284281 name : Validate Steward Config
285282 strategy :
286283 matrix :
287- os : [ubuntu-latest ]
284+ os : [ubuntu-22.04 ]
288285 java : [temurin@11]
289286 runs-on : ${{ matrix.os }}
290287 steps :
0 commit comments