GitHub Actions - CI on steroids

GitHub Actions - CI on steroids

Gummibeer

Astroneer
Moderator
Local time
03:50
Joined
Oct 5, 2019
Messages
1,185
Pronouns
he/him

Last days I've played, again, around with GitHub actions and moved some open source packages from TravisCI to GHA.

Why?

Because GHA are CI on steroids! 🚀

The configuration is even simpler than Travis, you can have multiple workflows and the performance is much better!
Right now I'm on the way to switch Laravel translatable from TravisCI to GHA and have extended the build matrix to cover all three OS types (Ubuntu, Windows, MacOS). So the matrix resolves to 30 builds which finish in ~10min. 😱

TravisCI took longer for a third of the builds.
And for public repos GHA are really unlimited - builds, workers, minutes, OSs - use it. 😉

And with all the ready to use actions out there it's super easy to do even more complex things.

Have you already switched? What's your experience with them?

 
Last edited:

Gummibeer

Astroneer
Moderator
Local time
03:50
Joined
Oct 5, 2019
Messages
1,185
Pronouns
he/him

PS: I will tinker a bit more to add three more matrix values to test with different databases - sqlite,mysql, postgresql.
If it works like expected this change will increase to ~50 builds by adding only a hand full more lines. 🚀

 

adam

Mr. Webwide
Administrator
Local time
02:50
Joined
Sep 24, 2019
Messages
1,259
Pronouns
he/him

I really need to wrap my head around this, I've seen some incredible implementations! Nice work on yours.

 

Gummibeer

Astroneer
Moderator
Local time
03:50
Joined
Oct 5, 2019
Messages
1,185
Pronouns
he/him

@Adam the best thing is the easy CD of custom static pages to netlify, surge or whatever. But for sure also the CI stuff.
Primary for open source this is a massive advantage because we can test a package against multiple PHP versions, on all OSs with multiple other services in a suer simple matrix build.
Travis was also good but GHA are simpler to setup and can solve much more complex tasks.
But also the thing that I can manage the issues, PRs and so on the same way. I can use the same YAML format to write some nice words to first time contributors. Use my Google Calendar to respond with "I'm on holidays" or whatever I want to automate.
That the CI/CD is the same organization with a super simple but powerful API integration of GitHub is great. Also fixing things and push them back is super easy.

 
Top