Skip to content

Commit 78075c8

Browse files
committed
Run CI for Java 21 & 24
1 parent 788000c commit 78075c8

1 file changed

Lines changed: 31 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,39 @@ on:
66
branches: [ master ]
77
tags: [ v* ]
88
jobs:
9-
build:
10-
uses: softwaremill/github-actions-workflows/.github/workflows/build-scala.yml@main
11-
with:
12-
java-version: '21'
13-
compile-documentation: true
9+
ci:
10+
runs-on: ubuntu-24.04
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
java: [ "21", "24" ]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Set up JDK
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: 'temurin'
22+
java-version: ${{ matrix.java }}
23+
cache: 'sbt'
24+
- uses: sbt/setup-sbt@v1
25+
- name: Check formatting
26+
run: sbt -v scalafmtCheckAll
27+
- name: Compile
28+
run: sbt -v compile
29+
- name: Compile documentation
30+
run: sbt -v compileDocumentation
31+
- name: Test
32+
run: sbt -v test
33+
- uses: actions/upload-artifact@v4 # upload test results
34+
if: success() || failure() # run this step even if previous step failed
35+
with:
36+
name: 'tests-results-java-${{ matrix.java }}'
37+
path: '**/test-reports/TEST*.xml'
1438

1539
publish:
1640
uses: softwaremill/github-actions-workflows/.github/workflows/publish-release.yml@main
17-
needs: [build]
41+
needs: [ci]
1842
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
1943
secrets: inherit
2044
with:
@@ -28,5 +52,5 @@ jobs:
2852
auto-merge:
2953
# only for PRs by softwaremill-ci
3054
if: github.event.pull_request.user.login == 'softwaremill-ci'
31-
needs: [ build, label ]
55+
needs: [ ci, label ]
3256
uses: softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main

0 commit comments

Comments
 (0)