Skip to content

Commit

Permalink
CI: Build with JDK 21 (in addition to JDK 11 and JDK 17)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmay committed Dec 21, 2023
1 parent 8a94a4a commit 6a4bd39
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,49 @@ jobs:
path: ~/junit
- store_artifacts:
path: ~/junit

"openjdk-21":
working_directory: ~/circleci-greenmail

docker:
- image: azul/zulu-openjdk:21.0.1
auth:
username: $DOCKERHUB_IDENTITY
password: $DOCKERHUB_PASSWORD
environment:
TZ: UTC

environment:
MAVEN_HOME: /usr/share/maven
steps:
- checkout

- prepare-maven

- restore_cache:
key: greenmail-{{ checksum "pom.xml" }}

- run: mvn -V clean package -DskipTests dependency:resolve-plugins dependency:go-offline

- save_cache:
paths:
- ~/.m2
key: greenmail-{{ checksum "pom.xml" }}

- run:
command: mvn -V clean install
no_output_timeout: 15m

- run:
name: Save test results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit
workflows:
version: 2
build:
Expand All @@ -107,3 +150,6 @@ workflows:
- openjdk-17:
context:
- docker
- openjdk-21:
context:
- docker
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ci
on:
push:
branches: [master,releases/1.6.x]
branches: [master,releases/2.0.x,releases/1.6.x]
paths-ignore:
- "**/*.md"
- "docs/**"
Expand All @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17' ]
java: [ '11', '17', '21' ]
name: Java ${{ matrix.Java }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 6a4bd39

Please sign in to comment.