Skip to content

Commit

Permalink
chore(repo): fix CI parallelization failure handling (nrwl#8068)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Dec 9, 2021
1 parent d808bc2 commit 4032a11
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,30 +174,39 @@ jobs:
- run:
name: Check repository
command: |
pids=()
yarn check-imports &
P1=$!
pids+=($!)
yarn nx format:check --base=$NX_BASE --head=$NX_HEAD &
P2=$!
pids+=($!)
yarn check-commit &
P3=$!
pids+=($!)
yarn depcheck &
P4=$!
wait $P1 $P2 $P3 $P4
pids+=($!)
for pid in "${pids[@]}"; do
wait "$pid"
done
- run:
name: Check Documentation
command: yarn documentation
no_output_timeout: 20m
- run:
name: Run Lint/Test/Build
command: |
pids=()
# npx nx affected --target=lint --base=$NX_BASE --head=$NX_HEAD --parallel --max-parallel=3
(yarn nx workspace-lint; echo "Linting is temporarily disabled until ESLint v8 support is published") &
P1=$!
pids+=($!)
yarn nx affected --target=test --base=$NX_BASE --head=$NX_HEAD --parallel --max-parallel=3 &
P2=$!
pids+=($!)
yarn nx affected --target=build --base=$NX_BASE --head=$NX_HEAD --parallel --max-parallel=3 &
P3=$!
wait $P1 $P2 $P3
pids+=($!)
for pid in "${pids[@]}"; do
wait "$pid"
done
- run:
name: Run E2E Tests
command: |
Expand Down

0 comments on commit 4032a11

Please sign in to comment.