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

Rework CI to add multi-version build and Maven repository caching #294

Merged
merged 1 commit into from Jan 30, 2022

Conversation

scordio
Copy link
Contributor

@scordio scordio commented Aug 15, 2021

I noticed the CI configuration was repeated three times, so I refactored it to use the build matrix.

Relevant changes:

Comment on lines 3 to 8
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
Copy link
Contributor Author

@scordio scordio Aug 15, 2021

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.

Copy link
Contributor Author

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.

@scordio scordio force-pushed the rework_ci branch 2 times, most recently from 9754a03 to d853d18 Compare August 15, 2021 09:32
@scordio
Copy link
Contributor Author

scordio commented Jan 30, 2022

@siom79 now that the build was triggered, it seems that japicmp has issues with Java 17+.

@siom79
Copy link
Owner

siom79 commented Jan 30, 2022

@scordio Yes, this ticket addresses the problems with Java 17: #307

@scordio
Copy link
Contributor Author

scordio commented Jan 30, 2022

Now 17 passes, but further errors with 18+.

@siom79
Copy link
Owner

siom79 commented Jan 30, 2022

Seems to be related to the system-rules library. I have created an issue: stefanbirkner/system-rules#85

@siom79 siom79 merged commit df69713 into siom79:master Jan 30, 2022
@scordio scordio deleted the rework_ci branch January 30, 2022 12:35
@scordio
Copy link
Contributor Author

scordio commented Jan 30, 2022

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.

@siom79
Copy link
Owner

siom79 commented Jan 30, 2022

That would be great. I would merge it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants