Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use java 21 #360

Merged
merged 3 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: CI

on: [pull_request, push]
on:
pull_request:
push:
branches:
- alpha
- beta
- master
- renovate/**

jobs:
prepare_jobs:
name: 'Prepare: job optimization'
name: "Prepare: job optimization"
runs-on: ubuntu-latest
outputs:
pr_found: ${{ steps.pr.outputs.pr_found }}
Expand All @@ -16,19 +23,20 @@ jobs:
filterOutClosed: true
sha: ${{ github.event.pull_request.head.sha }}
build:
name: Build
needs: prepare_jobs
if: needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request'
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17' ]
java: ["11", "21"]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
distribution: "adopt"
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
Expand All @@ -48,3 +56,8 @@ jobs:
./ci/before-deploy.sh
cp ./ci/.m2.settings.xml $HOME/.m2/settings.xml
mvn deploy -P release -DskipTests=true
- name: Create release
if: startsWith(github.ref, 'refs/tags/') && matrix.java == 11
run: npx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions lgtm.yml

This file was deleted.