-
My experience migrating to Redux Toolkit (RTK)
17 December 2022 —
Comments A couple of weeks ago I migrated a React project using redux to Redux Toolkit. Redux has always been my preferred state management tool for React (which doesn't mean I "love" it), but one of its main problems is the amount of boilerplate code it requires. Because of that I had a couple of helper fun…
-
How to reduce duplication in your GitHub Actions workflows
19 August 2022 —
Comments In 2019, GitHub published their own solution to run automated workflows called GitHub Actions, which allowed those hosting their code in GitHub, to be able to define and run their CI/CD pipelines in the same platform. When it was released, one of the main pain points to use it was that defining pipe…
-
My experience migrating from enzyme to react testing library
13 May 2022 —
Comments Recently ReactJS v18 was released. I started to look into its improvements, and checked which of my projects could benefit from them. The main react-based project I maintain at the moment of writing this article is shlink-web-client, so I naturally created a new branch and started the process. The u…
-
Capturing remote code coverage in API tests with PHPUnit
12 February 2022 —
Comments You can find an improved version of what's described here in Capturing remote code coverage in E2E tests with PHPUnit Capturing code coverage for a test suite is a very useful way to know which parts of your source code are actually getting executed by tests. This is useful not only to know if you…
-
Setting-up a preview environment for your client-side apps with GitHub Actions and GitHub Pages
09 May 2021 —
Comments In the last couple of days I have been playing around with the idea of combining GitHub Actions and GitHub Pages to be able to dynamically build preview environments every time a pull request is opened against a repository hosting a client-side web app. The idea is that you can quickly preview the c…