oliverdavies.uk/source/_posts/github-actions-phpunit-colours.md

12 lines
649 B
Markdown
Raw Permalink Normal View History

2024-03-09 23:35:00 +00:00
---
title: Coloured output with PHPUnit and GitHub Actions
excerpt: How to have colours in your PHPUnit output when running with GitHub Actions.
date: 2020-08-12
tags:
- github-actions
- phpunit
- testing
---
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">If you&#39;re using GitHub Actions to run tests for your PHP projects and want colours in the output, append `--colors=always` to your phpunit command. <a href="https://t.co/0AVwxCP4Bv">pic.twitter.com/0AVwxCP4Bv</a></p>&mdash; Oliver Davies (@opdavies) <a href="https://twitter.com/opdavies/status/1260608152225157121?ref_src=twsrc%5Etfw">May 13, 2020</a></blockquote>