fix(tia): skip locally() when the process is on CI (#1999)

* fix(tia): skip locally() when the process is on CI

locally() only looked at --ci, so a CI job that followed the docs and
ran plain pest replayed cached results.

Fixes #1970

* test(tia): clear CI variables so the local assertion passes on CI

* test: update snapshots for TIA CI detection

---------

Co-authored-by: Tiago Santos <tsantos@lynixt.pt>
Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
This commit is contained in:
Tiago Santos
2026-11-02 11:56:12 +00:00
committed by GitHub
parent e7a1b483f0
commit 8eb2892f69
6 changed files with 96 additions and 5 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ final class Ci
/**
* @var list<string>
*/
private const array ENVIRONMENT_VARIABLES = [
public const array ENVIRONMENT_VARIABLES = [
'CI',
'GITHUB_ACTIONS',
'GITLAB_CI',