-
Notifications
You must be signed in to change notification settings - Fork 107
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
Rework CI to add multi-version build and Maven repository caching #294
Conversation
.github/workflows/ci.yml
Outdated
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about simply having:
on: [push, pull_request]
which would trigger the build for any branch?
Also, not sure you really need the workflow_dispatch
as there is no special parameter or execution flow and the previous builds can be always retriggered using the Actions UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I applied my suggestions but am happy to roll them back if you see problems with them.
9754a03
to
d853d18
Compare
@siom79 now that the build was triggered, it seems that japicmp has issues with Java 17+. |
Now 17 passes, but further errors with 18+. |
Seems to be related to the system-rules library. I have created an issue: stefanbirkner/system-rules#85 |
I noticed that there is a dedicated python script to trigger the maven-release-plugin, or at least I assume you do it locally. Would you like to do that via GitHub workflow? I can raise a PR with something similar to https://github.com/assertj/assertj-core/blob/main/.github/workflows/release.yml. |
That would be great. I would merge it... |
I noticed the CI configuration was repeated three times, so I refactored it to use the build matrix.
Relevant changes:
actions/setup-java
to version 2 and enabled the built-in Maven cache