summaryrefslogtreecommitdiffstats
path: root/htesting
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-23 09:26:23 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-30 17:32:25 +0100
commitcea157402365f34a69882110a4208999728007a6 (patch)
treebc29f699e7c901c219cffc5f50fba99dca53d5bd /htesting
parentf9f779786edcefc4449a14cfc04dd93379f71373 (diff)
Add Dart Sass support
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102
Diffstat (limited to 'htesting')
-rw-r--r--htesting/test_helpers.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/htesting/test_helpers.go b/htesting/test_helpers.go
index b584f4ca0..813c9bd04 100644
--- a/htesting/test_helpers.go
+++ b/htesting/test_helpers.go
@@ -88,6 +88,18 @@ func DiffStrings(s1, s2 string) []string {
return DiffStringSlices(strings.Fields(s1), strings.Fields(s2))
}
+// IsCI reports whether we're running in a CI server.
func IsCI() bool {
return (os.Getenv("CI") != "" || os.Getenv("CI_LOCAL") != "") && os.Getenv("CIRCLE_BRANCH") == ""
}
+
+// IsGitHubAction reports whether we're running in a GitHub Action.
+func IsGitHubAction() bool {
+ return os.Getenv("GITHUB_ACTION") != ""
+}
+
+// SupportsAll reports whether the running system supports all Hugo features,
+// e.g. Asciidoc, Pandoc etc.
+func SupportsAll() bool {
+ return IsGitHubAction()
+}