images: Rework the golden tests

This commit is contained in:
Bjørn Erik Pedersen
2025-01-07 17:42:04 +01:00
parent cfa0801815
commit 9cad8d38ca
130 changed files with 332 additions and 324 deletions

View File

@@ -110,6 +110,11 @@ func IsCI() bool {
return (os.Getenv("CI") != "" || os.Getenv("CI_LOCAL") != "") && os.Getenv("CIRCLE_BRANCH") == ""
}
// IsRealCI reports whether we're running in a CI server, but not in a local CI setup.
func IsRealCI() bool {
return IsCI() && os.Getenv("CI_LOCAL") == ""
}
// IsGitHubAction reports whether we're running in a GitHub Action.
func IsGitHubAction() bool {
return os.Getenv("GITHUB_ACTION") != ""