PHPnews.io

Overview for 'tomasvotruba'

Write GitHub Actions for Gitlab Too

Written by Tomáš Votruba / Original link on May. 10, 2021

In a recent post How can We use GitHub Actions in Gitlab?, we looked at the idea, how both services could the use same CI recipe. As a Gitlab CI user, you can use some GitHub Actions to do the work for you. Today we look at how to write such action to provide an excellent developer experience for…



Dependency Juggling Code Smell

Written by Tomáš Votruba / Original link on Apr. 26, 2021

The best way to pass dependencies is via constructor injection. Only in services, we need the dependency in. I've noticed that sometimes the dependency is passed way too early, just to be passed to another service as a method argument. Why is it a code smell, and how can we avoid it?


How can We use GitHub Actions in Gitlab?

Written by Tomáš Votruba / Original link on Apr. 19, 2021

One of my customers is building a monorepo, so we prepared a prototype on GitHub to test it out. It uses Monorepo Split GitHub Action and works well. You know I'm a big fan of GitHub, so when client asked me: "how can we do it in Gitlab?" I was like: "that's not possible... you need to switch to Gi…