add new conditional test runs helper
This commit is contained in:
9
tests/helpers/conditional-runs.js
Normal file
9
tests/helpers/conditional-runs.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const runningActionsOnInternalRepo = process.env.GITHUB_ACTIONS === 'true' && process.env.GITHUB_REPOSITORY === 'github/docs-internal'
|
||||
|
||||
const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
|
||||
const describeViaActionsOnly = runningActionsOnInternalRepo ? describe : describe.skip
|
||||
|
||||
module.exports = {
|
||||
testViaActionsOnly,
|
||||
describeViaActionsOnly
|
||||
}
|
||||
Reference in New Issue
Block a user