UNOMI-966: Upgrade remaining setup-java actions to v5 and speed up CI workflows - #829
Merged
Conversation
Bump docs-deploy and CodeQL Java workflows from setup-java@v1 to @v5 with Temurin so all CI uses Node 24–compatible action majors.
- Add cache: maven to CodeQL Java build and both docs-deploy jobs - Purge Unomi's own snapshots from ~/.m2 before every post-job cache save (all cached jobs) so caches hold only third-party dependencies - Add concurrency groups: cancel superseded PR runs, never cancel master/scheduled runs; serialize (not cancel) snapshot deploys - Remove dead Nexus server config from the Docker image job - Quote distribution/java-version consistently with other workflows Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
actions/setup-javafrom@v1to@v5inunomi-ci-docs-deploy.yml(both jobs) andcodeql-analysis-java.ymldistribution: temurin(required by modern setup-java) while keeping JDK 17 and existing Nexus credential wiringcache: mavento the CodeQL Java build and both docs-deploy jobs (the other workflows already had it)concurrencygroups everywhere: superseded PR runs are cancelled (cancel-in-progressonly whengithub.event_name == 'pull_request'), master pushes and scheduled CodeQL runs are never cancelled, and the docs-deploy workflow serializes runs without cancelling so a snapshot publish is never killed mid-uploadserver-id/server-username/server-passwordconfig from thepublish-docker-imagejob (it only pushes to Docker Hub and never had the NEXUS env vars wired)distribution/java-versionvalues consistently with the workflows upgraded in #795Closes the remaining Node 24–compatible Actions gap after #795.
JIRA: UNOMI-966
Test plan
actions/setup-java@v1under.github/workflows/master, docs-deploy job still publishes with JDK 17 / Nexus credentials unchanged aside from the action major, and the saved Maven cache contains only third-party dependencies🤖 Generated with Claude Code