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>
18 lines
713 B
JavaScript
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,
|
|
}
|