@@ -24,25 +24,24 @@ concurrency:
24
24
25
25
jobs :
26
26
build :
27
- name : Build and Test
27
+ name : Test
28
28
strategy :
29
29
matrix :
30
- os : [ubuntu-latest ]
30
+ os : [ubuntu-22.04 ]
31
31
scala : [2.12, 2.13, 3]
32
32
java : [temurin@11]
33
33
project : [diffsonJVM, diffsonJS, diffsonNative]
34
34
runs-on : ${{ matrix.os }}
35
35
timeout-minutes : 60
36
36
steps :
37
- - name : Install sbt
38
- if : contains(runner.os, 'macos')
39
- run : brew install sbt
40
-
41
37
- name : Checkout current branch (full)
42
38
uses : actions/checkout@v4
43
39
with :
44
40
fetch-depth : 0
45
41
42
+ - name : Setup sbt
43
+ uses : sbt/setup-sbt@v1
44
+
46
45
- name : Setup Java (temurin@11)
47
46
id : setup-java-temurin-11
48
47
if : matrix.java == 'temurin@11'
60
59
run : sbt githubWorkflowCheck
61
60
62
61
- 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 '
64
63
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck
65
64
66
65
- name : scalaJSLink
@@ -75,11 +74,11 @@ jobs:
75
74
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test
76
75
77
76
- 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 '
79
78
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues
80
79
81
80
- 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 '
83
82
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc
84
83
85
84
- name : Make target directories
@@ -103,19 +102,18 @@ jobs:
103
102
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
104
103
strategy :
105
104
matrix :
106
- os : [ubuntu-latest ]
105
+ os : [ubuntu-22.04 ]
107
106
java : [temurin@11]
108
107
runs-on : ${{ matrix.os }}
109
108
steps :
110
- - name : Install sbt
111
- if : contains(runner.os, 'macos')
112
- run : brew install sbt
113
-
114
109
- name : Checkout current branch (full)
115
110
uses : actions/checkout@v4
116
111
with :
117
112
fetch-depth : 0
118
113
114
+ - name : Setup sbt
115
+ uses : sbt/setup-sbt@v1
116
+
119
117
- name : Setup Java (temurin@11)
120
118
id : setup-java-temurin-11
121
119
if : matrix.java == 'temurin@11'
@@ -248,19 +246,18 @@ jobs:
248
246
if : github.event.repository.fork == false && github.event_name != 'pull_request'
249
247
strategy :
250
248
matrix :
251
- os : [ubuntu-latest ]
249
+ os : [ubuntu-22.04 ]
252
250
java : [temurin@11]
253
251
runs-on : ${{ matrix.os }}
254
252
steps :
255
- - name : Install sbt
256
- if : contains(runner.os, 'macos')
257
- run : brew install sbt
258
-
259
253
- name : Checkout current branch (full)
260
254
uses : actions/checkout@v4
261
255
with :
262
256
fetch-depth : 0
263
257
258
+ - name : Setup sbt
259
+ uses : sbt/setup-sbt@v1
260
+
264
261
- name : Setup Java (temurin@11)
265
262
id : setup-java-temurin-11
266
263
if : matrix.java == 'temurin@11'
@@ -284,7 +281,7 @@ jobs:
284
281
name : Validate Steward Config
285
282
strategy :
286
283
matrix :
287
- os : [ubuntu-latest ]
284
+ os : [ubuntu-22.04 ]
288
285
java : [temurin@11]
289
286
runs-on : ${{ matrix.os }}
290
287
steps :
0 commit comments