From dd01df1fb75e97aeb7c403ed368c51416bbc368f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Fern=C3=A1ndez-Capel?= Date: Fri, 2 Feb 2024 09:12:55 +0000 Subject: [PATCH] Only run test on SauceLabs when SAUCE_ACCESS_KEY is set Allows forks to run tests on GitHub Actions without having to have access to the SauceLabs secret. Ref. https://github.com/basecamp/trix/pull/1072#issuecomment-1917429747 --- karma.conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index 03b86823c..9fe317624 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -29,7 +29,7 @@ const config = { /* eslint camelcase: "off", */ -if (process.env.CI) { +if (process.env.SAUCE_ACCESS_KEY) { config.customLaunchers = { sl_chrome_latest: { base: "SauceLabs",