Skip to content

Commit

Permalink
Fix parallelism for check and compile command on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Mar 28, 2024
1 parent 0d9a4a6 commit 17b0125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/tasks/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Task } from '../task';
import { exec } from '../utils/exec';
import { maxConcurrentTasks } from '../utils/maxConcurrentTasks';

const parallel = `--parallel=${process.env.CI ? 8 : maxConcurrentTasks}`;
const parallel = `--parallel=${process.env.CI ? maxConcurrentTasks - 1 : maxConcurrentTasks}`;

const linkCommand = `nx affected -t check ${parallel}`;
const nolinkCommand = `nx affected -t check -c production ${parallel}`;
Expand Down
2 changes: 1 addition & 1 deletion scripts/tasks/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { maxConcurrentTasks } from '../utils/maxConcurrentTasks';
import { exec } from '../utils/exec';
import type { Task } from '../task';

const parallel = `--parallel=${process.env.CI ? 8 : maxConcurrentTasks}`;
const parallel = `--parallel=${process.env.CI ? maxConcurrentTasks - 1 : maxConcurrentTasks}`;

const linkedContents = `export * from '../src/index';`;
const linkCommand = `nx run-many -t build ${parallel}`;
Expand Down

0 comments on commit 17b0125

Please sign in to comment.