-
-
Notifications
You must be signed in to change notification settings - Fork 778
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
Setup GitHub Actions #2512
Setup GitHub Actions #2512
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2512 +/- ##
=========================================
Coverage ? 80.85%
Complexity ? 2266
=========================================
Files ? 376
Lines ? 7348
Branches ? 1202
=========================================
Hits ? 5941
Misses ? 809
Partials ? 598
Continue to review full report at Codecov.
|
Co-Authored-By: Artur Bosch <arturbosch@gmx.de>
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.
Super cool, thanks for the work @cortinico !
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.
Don't we need these lines?
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
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.
Thanks! I very much welcome this change, since I invested quite some time to re-trigger the flaky builds on TravisCI. Good job @cortinico !
But we have to be careful here, before we remove the TravisCI and AppVeyor scripts. The current GitHub action script misses codecov.io
code coverage reports.
I think it can be added by using a corresponding GitHub action.
I think we have it. It's the last action?
|
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.
@arturbosch Oh sry, I oversaw this command. I take everything back.
So far I've addressed all the comments. There are still two open points to address: caching and snapshots.
I was playing around with those in a06c017. Those are Travis specific configuration commands. Looks like caching is working fine on the Ubuntu worker (build time ~6 minutes). That's working also without those two commands. As for the Snapshot setup, is currently hard to test as it's configured to publish a snapshot on Should I limit this to run only on JDK8/Linux? Or should it be a separate action? |
Lets go with just JDK8/Linux. |
Do we know why the |
The cache miss issue should be solved now. Funny story, @3flex had the same issue we were facing here: actions/cache#144 I've moved the logic of the publish script to its own Action.
I noticed that the |
That would be my preferred approach until the referenced issue is fixed. Thanks again for the awesome research work in this PR! @cortinico |
AppVeyor is still triggered even though there's no config anymore. Therefore, the failed build on this platform can be ignored. |
Co-Authored-By: M Schalk <30376729+schalkms@users.noreply.github.com>
We should be good to go. I don't think this is a blocker as for now as the overall time is anyway lower than it was before with AppVeyor/Travis so I'd love to followup on a later PR on that. |
Because I was trying to introduce Actions for this project myself :) Glad you worked it out, thanks! And I saw the same regarding cache size, and agree it shouldn't be a blocker - if the cache grows too large it will be pruned automatically, though we'd lose some caching benefits. Overall though I see this as a win especially as Windows builds run in parallel which wasn't possible with AppVeyor. |
This is a proposal to replace Travis + AppVeyor with Github Actions (as suggested in #2507). Having GH Actions will allow to run a matrix with [win, mac, linux] x [jdk8, jdk11, jdk13].
I've also removed Travis and AppVeyor configuration but we can keep it if we want to have them run alongside for some time.
I've adapted the
.buildscript/deploy_snapshot.sh
to work although I wasn't able to test it. I anyway think it's better to have a separate workflow that runs only on one agent + only on push to master.Happy to get some input/feedbacks/ideas.