1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/tests/helpers/conditional-runs.js
Kevin Heis 8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00

11 lines
382 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 default {
testViaActionsOnly,
describeViaActionsOnly,
}