Which part of the CI pipeline has the most value?

The main part of my CI pipeline tasks are running the automated tests, coding standards checks and static analysis.

But which of these are the most valuable?

I used to run the coding standards check first as it was the quickest, followed by static analysis and the automated tests.

If a task were going to fail, it would fail quickly.

But is that the objective of the CI pipeline?

Whilst it needs to be quick, the main reason to run these is to ensure things work as expected.

Recently, I changed my pipelines to run the tests first, as these verify the code's behaviour.

I want to know if the code works but has a coding standard error that needs to be fixed rather than the pipeline failing on the error and not knowing whether the code works.

- Oliver

Was this interesting?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.