@@ -24,10 +24,10 @@ 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]
39
39
with :
40
40
fetch-depth : 0
41
41
42
+ - name : Setup sbt
43
+ uses : sbt/setup-sbt@v1
44
+
42
45
- name : Setup Java (temurin@11)
43
46
id : setup-java-temurin-11
44
47
if : matrix.java == 'temurin@11'
56
59
run : sbt githubWorkflowCheck
57
60
58
61
- name : Check headers and formatting
59
- if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest '
62
+ if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-22.04 '
60
63
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck
61
64
62
65
- name : scalaJSLink
@@ -71,11 +74,11 @@ jobs:
71
74
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test
72
75
73
76
- name : Check binary compatibility
74
- if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest '
77
+ if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-22.04 '
75
78
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues
76
79
77
80
- name : Generate API documentation
78
- if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest '
81
+ if : matrix.java == 'temurin@11' && matrix.os == 'ubuntu-22.04 '
79
82
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc
80
83
81
84
- name : Make target directories
99
102
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
100
103
strategy :
101
104
matrix :
102
- os : [ubuntu-latest ]
105
+ os : [ubuntu-22.04 ]
103
106
java : [temurin@11]
104
107
runs-on : ${{ matrix.os }}
105
108
steps :
@@ -108,6 +111,9 @@ jobs:
108
111
with :
109
112
fetch-depth : 0
110
113
114
+ - name : Setup sbt
115
+ uses : sbt/setup-sbt@v1
116
+
111
117
- name : Setup Java (temurin@11)
112
118
id : setup-java-temurin-11
113
119
if : matrix.java == 'temurin@11'
@@ -237,10 +243,10 @@ jobs:
237
243
238
244
dependency-submission :
239
245
name : Submit Dependencies
240
- if : github.event_name != 'pull_request'
246
+ if : github.event.repository.fork == false && github. event_name != 'pull_request'
241
247
strategy :
242
248
matrix :
243
- os : [ubuntu-latest ]
249
+ os : [ubuntu-22.04 ]
244
250
java : [temurin@11]
245
251
runs-on : ${{ matrix.os }}
246
252
steps :
@@ -249,6 +255,9 @@ jobs:
249
255
with :
250
256
fetch-depth : 0
251
257
258
+ - name : Setup sbt
259
+ uses : sbt/setup-sbt@v1
260
+
252
261
- name : Setup Java (temurin@11)
253
262
id : setup-java-temurin-11
254
263
if : matrix.java == 'temurin@11'
@@ -272,7 +281,7 @@ jobs:
272
281
name : Validate Steward Config
273
282
strategy :
274
283
matrix :
275
- os : [ubuntu-latest ]
284
+ os : [ubuntu-22.04 ]
276
285
java : [temurin@11]
277
286
runs-on : ${{ matrix.os }}
278
287
steps :
0 commit comments