@@ -9,9 +9,9 @@ name: Continuous Integration
99
1010on :
1111 pull_request :
12- branches : ['**']
12+ branches : ['**', '!update/**', '!pr/**' ]
1313 push :
14- branches : ['**']
14+ branches : ['**', '!update/**', '!pr/**' ]
1515 tags : [v*]
1616
1717env :
@@ -29,12 +29,12 @@ jobs:
2929 fail-fast : false
3030 matrix :
3131 os : [ubuntu-latest]
32- scala : [2.13.8, 3.1.2 ]
32+ scala : [2.13.8, 3.2.1 ]
3333 java : [temurin@8, temurin@11, temurin@17]
3434 exclude :
35- - scala : 3.1.2
35+ - scala : 3.2.1
3636 java : temurin@11
37- - scala : 3.1.2
37+ - scala : 3.2.1
3838 java : temurin@17
3939 runs-on : ${{ matrix.os }}
4040 steps :
@@ -104,7 +104,7 @@ jobs:
104104 key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
105105
106106 - name : Check that workflows are up to date
107- run : sbt '++${{ matrix.scala }}' 'project /' githubWorkflowCheck
107+ run : sbt githubWorkflowCheck
108108
109109 - name : Check headers and formatting
110110 if : matrix.java == 'temurin@8'
@@ -121,17 +121,21 @@ jobs:
121121 if : matrix.java == 'temurin@8'
122122 run : sbt '++${{ matrix.scala }}' doc
123123
124+ - name : Check scalafix lints
125+ if : matrix.java == 'temurin@8' && !startsWith(matrix.scala, '3.')
126+ run : sbt '++${{ matrix.scala }}' 'scalafixAll --check'
127+
124128 - name : Check unused compile dependencies
125129 if : matrix.java == 'temurin@8'
126130 run : sbt '++${{ matrix.scala }}' unusedCompileDependenciesTest
127131
128132 - name : Make target directories
129133 if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
130- run : mkdir -p target scala-xml/target site/target project/target
134+ run : mkdir -p target scala-xml-2 /target site/target project/target
131135
132136 - name : Compress target directories
133137 if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
134- run : tar cf targets.tar target scala-xml/target site/target project/target
138+ run : tar cf targets.tar target scala-xml-2 /target site/target project/target
135139
136140 - name : Upload target directories
137141 if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
@@ -226,32 +230,12 @@ jobs:
226230 tar xf targets.tar
227231 rm targets.tar
228232
229- - name : Download target directories (2.13.8)
230- uses : actions/download-artifact@v2
231- with :
232- name : target-${{ matrix.os }}-${{ matrix.java }}-2.13.8
233-
234- - name : Inflate target directories (2.13.8)
235- run : |
236- tar xf targets.tar
237- rm targets.tar
238-
239- - name : Download target directories (2.13.8)
240- uses : actions/download-artifact@v2
241- with :
242- name : target-${{ matrix.os }}-${{ matrix.java }}-2.13.8
243-
244- - name : Inflate target directories (2.13.8)
245- run : |
246- tar xf targets.tar
247- rm targets.tar
248-
249- - name : Download target directories (3.1.2)
233+ - name : Download target directories (3.2.1)
250234 uses : actions/download-artifact@v2
251235 with :
252- name : target-${{ matrix.os }}-${{ matrix.java }}-3.1.2
236+ name : target-${{ matrix.os }}-${{ matrix.java }}-3.2.1
253237
254- - name : Inflate target directories (3.1.2 )
238+ - name : Inflate target directories (3.2.1 )
255239 run : |
256240 tar xf targets.tar
257241 rm targets.tar
0 commit comments