1
0
mirror of synced 2025-12-23 11:54:18 -05:00

add new conditional test runs helper

This commit is contained in:
Sarah Schneider
2020-12-08 11:36:53 -05:00
parent 4b1988d8a8
commit 117bd5fcb8
3 changed files with 12 additions and 7 deletions

View 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
}