1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/tests/helpers/conditional-runs.js
Grace Park ef2efb0636 Feature Branch: Global Nav Phase 1 (#33465)
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2023-01-31 17:49:50 +00:00

18 lines
713 B
JavaScript

const runningActionsOnInternalRepo =
process.env.GITHUB_ACTIONS === 'true' && process.env.GITHUB_REPOSITORY === 'github/docs-internal'
export const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
export const describeViaActionsOnly = runningActionsOnInternalRepo ? describe : describe.skip
export const describeIfElasticsearchURL = process.env.ELASTICSEARCH_URL ? describe : describe.skip
export const describeIfDocsEarlyAccess =
process.env.GITHUB_REPOSITORY === 'github/docs-internal' || process.env.TEST_DOCS_EARLY_ACCESS
? describe
: describe.skip
export default {
testViaActionsOnly,
describeViaActionsOnly,
describeIfElasticsearchURL,
describeIfDocsEarlyAccess,
}