ci: migrate from CircleCI to GitHub Actions with cached core-jar build#1814
Merged
Conversation
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
…s example reuses compiled artifacts Signed-off-by: Marvin Froeder <velo.br@gmail.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
Migrates CI from CircleCI to GitHub Actions, restructured around a single cached core-jar build that every downstream job restores instead of rebuilding.
Architecture
build— runs once: validates formatting,clean install -Pno-databases(builds all jars + database-independent unit tests), then saves~/.m2/repository/io/github/openfeign/querydslas a per-commit cache (build-artifacts-<sha>). Maven dependencies are cached bypom.xmlhash via the reusable.github/actions/setup-buildcomposite action (which also installs JDK 17/21/25 and generatestoolchains.xml).-pl(core resolved from cache, not rebuilt) —-Deasyjacoco.skip=truedisables the coverage aggregator so module-scoped builds resolve cleanly.mysql,postgresql,oracle,cubrid,firebird,mongodb,db2— each with a service container and tests run on the runner so the hard-codedlocalhostJDBC URLs keep working unchanged.embedded— runs all embedded databases:H2, HSQLDB, Derby, SQLite, Turso.examples,examples-quarkus,examples-ksp,windows— examples and Windows build, restoring the cache where applicable.ci— single aggregation gate that fails if any job failed or all were skipped (intended new required status check).deploy.yml— snapshot (push to master/querydsl-*) and release (tags) to Maven Central, using.github/settings.xml..circleci/is removed.Bug fixed along the way
The old CircleCI embedded job used
-Dgroups=…EmbeddedDatabase, but the suites are tagged with their specific DB name and JUnit 5 does not inherit tags through theEmbeddedDatabasemarker interface — so the H2/HSQLDB/Derby/SQLite suites never actually ran in CI. The newembeddedjob lists every embedded tag explicitly, so they run for real.Action required from a maintainer
build(CircleCI) toci(this workflow). Until then this PR's required check won't be satisfiable, since CircleCI no longer runs.deploy.yml, only needed for publishing):CENTRAL_TOKEN_USERNAME,CENTRAL_TOKEN_PASSWORD,GPG_PASSPHRASE,GPG_KEY(base64-encoded key), under acentralenvironment.Notes
-pl), so they no longer rebuild the whole reactor — that's the point of caching the core jars.SQLServerhas tagged tests but had no CircleCI job and still has none here (no service was ever configured); can be added later.🤖 Generated with Claude Code
https://claude.ai/code/session_01WPLya3e3DqdYmfdaoH3L6o