Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

task(ci): Make runs consistent #18354

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ commands:
parameters:
nx_run:
type: string
default: run-many
steps:
- run:
name: Linting
Expand All @@ -301,6 +302,7 @@ commands:
parameters:
nx_run:
type: string
default: run-many
steps:
- run:
name: Pre building shared libraries
Expand Down Expand Up @@ -564,7 +566,7 @@ jobs:
parameters:
nx_run:
type: string
default: affected --base=main --head=$CIRCLE_SHA1
default: run-many
executor: default-executor
resource_class: small
steps:
Expand All @@ -577,7 +579,7 @@ jobs:
parameters:
nx_run:
type: string
default: affected --base=main --head=$CIRCLE_SHA1
default: run-many
executor: default-executor
resource_class: large
steps:
Expand All @@ -591,7 +593,7 @@ jobs:
parameters:
nx_run:
type: string
default: affected --base=main --head=$CIRCLE_SHA1
default: run-many
executor: default-executor
resource_class: medium+
steps:
Expand All @@ -602,7 +604,7 @@ jobs:
command: NODE_OPTIONS="--max-old-space-size=7168" npx nx run-many -t build --projects=tag:scope:shared:lib --parallel=2
- run:
name: Run unit tests
command: npx nx << parameters.nx_run >> --parallel=2 -t test-unit
command: NODE_OPTIONS="--max-old-space-size=7168" npx nx << parameters.nx_run >> --parallel=2 -t test-unit
environment:
NODE_ENV: test
- store-artifacts
Expand Down Expand Up @@ -766,18 +768,21 @@ workflows:
- Init (PR)
- lint:
name: Lint (PR)
nx_run: affected --base=main --head=$CIRCLE_SHA1
requires:
- Init (PR)
post-steps:
- fail-fast
- compile:
name: Compile (PR)
nx_run: affected --base=main --head=$CIRCLE_SHA1
requires:
- Init (PR)
post-steps:
- fail-fast
- unit-test:
name: Unit Test (PR)
nx_run: affected --base=main --head=$CIRCLE_SHA1
requires:
- Build (PR)
post-steps:
Expand Down Expand Up @@ -1080,17 +1085,14 @@ workflows:
- Init (nightly)
- lint:
name: Lint (nightly)
nx_run: 'run-many'
requires:
- Init (nightly)
- compile:
name: Compile (nightly)
nx_run: 'run-many'
requires:
- Init (nightly)
- unit-test:
name: Unit Test (nightly)
nx_run: 'run-many'
requires:
- Build (nightly)
- integration-test:
Expand Down