Skip to content

Commit

Permalink
Only run test on SauceLabs when SAUCE_ACCESS_KEY is set
Browse files Browse the repository at this point in the history
Allows forks to run tests on GitHub Actions without having to have access
to the SauceLabs secret.

Ref. #1072 (comment)
  • Loading branch information
afcapel committed Feb 2, 2024
1 parent 5dbd617 commit dd01df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dd01df1

Please sign in to comment.