Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

conditional-runs.js 367 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
  1. const runningActionsOnInternalRepo = process.env.GITHUB_ACTIONS === 'true' && process.env.GITHUB_REPOSITORY === 'github/docs-internal'
  2. const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
  3. const describeViaActionsOnly = runningActionsOnInternalRepo ? describe : describe.skip
  4. module.exports = {
  5. testViaActionsOnly,
  6. describeViaActionsOnly
  7. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...