chore(repo): run repo checks in parallel to lint test build (#11686)

This commit is contained in:
Miroslav Jonaš 2022-08-23 14:50:35 +02:00 committed by GitHub
parent c8c9efab62
commit ace06fbed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,22 +170,24 @@ jobs:
- nx/set-shas:
main-branch-name: 'master'
- run: npx nx-cloud start-ci-run --stop-agents-after="e2e"
- run: npx nx-cloud record yarn check-imports
- run: npx nx-cloud record yarn nx format:check --base=$NX_BASE --head=$NX_HEAD
- run: npx nx-cloud record yarn check-commit
- run: npx nx-cloud record yarn check-lock-files
- run: npx nx-cloud record yarn depcheck
- run:
name: Check Documentation
command: npx nx-cloud record yarn documentation
no_output_timeout: 20m
- run:
name: Run Lint/Test/Build/E2E
no_output_timeout: 45m
name: Run Checks/Lint/Test/Build
command: |
pids=()
(yarn nx affected --target=build --base=$NX_BASE --head=$NX_HEAD --parallel=3 && npx nx affected --target=e2e --base=$NX_BASE --head=$NX_HEAD --exclude=e2e-storybook,e2e-storybook-angular,e2e-react-native,e2e-detox,e2e-make-angular-cli-faster --parallel=1) &
(npx nx-cloud record yarn check-imports &&
npx nx-cloud record yarn nx format:check --base=$NX_BASE --head=$NX_HEAD &&
npx nx-cloud record yarn check-commit &&
npx nx-cloud record yarn check-lock-files &&
npx nx-cloud record yarn depcheck) &
pids+=($!)
(yarn nx affected --target=build --base=$NX_BASE --head=$NX_HEAD --parallel=3 &&
npx nx affected --target=e2e --base=$NX_BASE --head=$NX_HEAD --exclude=e2e-storybook,e2e-storybook-angular,e2e-react-native,e2e-detox,e2e-make-angular-cli-faster --parallel=1) &
pids+=($!)
(npx nx-cloud record yarn nx workspace-lint && yarn nx affected --target=lint --base=$NX_BASE --head=$NX_HEAD --parallel=3) &
pids+=($!)