Skip to content

Commit

Permalink
do not run
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Nov 19, 2024
1 parent 2072a1f commit 42f2aa1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ci/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ const isJestWorker = !!process.env.JEST_WORKER_ID
const isCucumberWorker = !!process.env.CUCUMBER_WORKER_ID
const isMochaWorker = !!process.env.MOCHA_WORKER_ID

const isNpm = () => {
return process.argv[1].includes('bin/npm')
}

const isYarn = () => {
return process.argv[1].includes('bin/yarn')
}

const options = {
startupLogs: false,
isCiVisibility: true,
Expand All @@ -14,6 +22,12 @@ const options = {

let shouldInit = true

if (isNpm() || isYarn()) {
shouldInit = false
} else {
console.log('init')
}

const isAgentlessEnabled = isTrue(process.env.DD_CIVISIBILITY_AGENTLESS_ENABLED)

if (isAgentlessEnabled) {
Expand Down

0 comments on commit 42f2aa1

Please sign in to comment.