Skip to content

Commit

Permalink
Add JDK 23 to the CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Sep 25, 2024
1 parent f06cd9e commit e2cf1b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

strategy:
matrix:
jdk: [ 11, 17, 21 ]
jdk: [ 11, 17, 21, 23 ]

env:
is_latest_jdk: ${{ matrix.jdk == 21 && 'yes' || '' }}
is_latest_jdk: ${{ matrix.jdk == 23 && 'yes' || '' }}
is_main: ${{ github.ref_name == github.event.repository.default_branch && 'yes' || '' }}
is_develop: ${{ github.ref_name == 'develop' && 'yes' || '' }}
is_fork: ${{ github.event_name == 'pull_request' && 'yes' || '' }}
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
# SEMANTIC VERSIONING
# ================================
- name: Semantic versioning
if: ${{ matrix.jdk == 21 }}
if: ${{ env.is_latest_jdk }}
run: |
SEMVER=`cat ./api-compatibility/build/semver.txt`
BADGE="https://dev.leakyabstractions.com/result/semver-${SEMVER}.json"
Expand All @@ -112,7 +112,7 @@ jobs:
# COMPATIBILITY REPORT
# ================================
- name: Compatibility with version ${{ steps.properties.outputs.previousVersion }}
if: ${{ matrix.jdk == 21 }}
if: ${{ env.is_latest_jdk }}
# $GITHUB_STEP_SUMMARY supports content up to a size of 1024k
run: head -c 1MiB ./api-compatibility/build/report.txt >> $GITHUB_STEP_SUMMARY

Expand Down

0 comments on commit e2cf1b2

Please sign in to comment.