@@ -24,24 +24,23 @@ 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 : [3]
32
32
java : [temurin@17]
33
33
runs-on : ${{ matrix.os }}
34
34
timeout-minutes : 60
35
35
steps :
36
- - name : Install sbt
37
- if : contains(runner.os, 'macos')
38
- run : brew install sbt
39
-
40
36
- name : Checkout current branch (full)
41
37
uses : actions/checkout@v4
42
38
with :
43
39
fetch-depth : 0
44
40
41
+ - name : Setup sbt
42
+ uses : sbt/setup-sbt@v1
43
+
45
44
- name : Setup Java (temurin@17)
46
45
id : setup-java-temurin-17
47
46
if : matrix.java == 'temurin@17'
@@ -59,22 +58,22 @@ jobs:
59
58
run : sbt githubWorkflowCheck
60
59
61
60
- name : Check headers and formatting
62
- if : matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest '
61
+ if : matrix.java == 'temurin@17' && matrix.os == 'ubuntu-22.04 '
63
62
run : sbt '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck
64
63
65
64
- name : Check scalafix lints
66
- if : matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest '
65
+ if : matrix.java == 'temurin@17' && matrix.os == 'ubuntu-22.04 '
67
66
run : sbt '++ ${{ matrix.scala }}' 'scalafixAll --check'
68
67
69
68
- name : Test
70
69
run : sbt '++ ${{ matrix.scala }}' test
71
70
72
71
- name : Check binary compatibility
73
- if : matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest '
72
+ if : matrix.java == 'temurin@17' && matrix.os == 'ubuntu-22.04 '
74
73
run : sbt '++ ${{ matrix.scala }}' mimaReportBinaryIssues
75
74
76
75
- name : Generate API documentation
77
- if : matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest '
76
+ if : matrix.java == 'temurin@17' && matrix.os == 'ubuntu-22.04 '
78
77
run : sbt '++ ${{ matrix.scala }}' doc
79
78
80
79
- name : Scripted tests
@@ -101,19 +100,18 @@ jobs:
101
100
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
102
101
strategy :
103
102
matrix :
104
- os : [ubuntu-latest ]
103
+ os : [ubuntu-22.04 ]
105
104
java : [temurin@17]
106
105
runs-on : ${{ matrix.os }}
107
106
steps :
108
- - name : Install sbt
109
- if : contains(runner.os, 'macos')
110
- run : brew install sbt
111
-
112
107
- name : Checkout current branch (full)
113
108
uses : actions/checkout@v4
114
109
with :
115
110
fetch-depth : 0
116
111
112
+ - name : Setup sbt
113
+ uses : sbt/setup-sbt@v1
114
+
117
115
- name : Setup Java (temurin@17)
118
116
id : setup-java-temurin-17
119
117
if : matrix.java == 'temurin@17'
@@ -163,22 +161,21 @@ jobs:
163
161
164
162
dependency-submission :
165
163
name : Submit Dependencies
166
- if : github.event_name != 'pull_request'
164
+ if : github.event.repository.fork == false && github. event_name != 'pull_request'
167
165
strategy :
168
166
matrix :
169
- os : [ubuntu-latest ]
167
+ os : [ubuntu-22.04 ]
170
168
java : [temurin@17]
171
169
runs-on : ${{ matrix.os }}
172
170
steps :
173
- - name : Install sbt
174
- if : contains(runner.os, 'macos')
175
- run : brew install sbt
176
-
177
171
- name : Checkout current branch (full)
178
172
uses : actions/checkout@v4
179
173
with :
180
174
fetch-depth : 0
181
175
176
+ - name : Setup sbt
177
+ uses : sbt/setup-sbt@v1
178
+
182
179
- name : Setup Java (temurin@17)
183
180
id : setup-java-temurin-17
184
181
if : matrix.java == 'temurin@17'
@@ -202,7 +199,7 @@ jobs:
202
199
name : Validate Steward Config
203
200
strategy :
204
201
matrix :
205
- os : [ubuntu-latest ]
202
+ os : [ubuntu-22.04 ]
206
203
java : [temurin@11]
207
204
runs-on : ${{ matrix.os }}
208
205
steps :
0 commit comments