81
81
# The --agent-count parameter must match the number of strategies run by the dte_agents job
82
82
run : yarn nx-cloud start-ci-run --agent-count=4
83
83
84
- - name : Lint Nx workspace
85
- env :
86
- # DTE is disabled to run this step on the DTE coordinator while the agents are set up
87
- NX_CLOUD_DISTRIBUTED_EXECUTION : false
88
- NX_DISTRIBUTED_TASK_EXECUTION : false
89
- run : yarn nx workspace-lint
90
84
- name : Check formatting
91
85
env :
92
86
# DTE is disabled to run this step on the DTE coordinator while the agents are set up
@@ -97,26 +91,26 @@ jobs:
97
91
# Distribution strategy for 2 vCPUs per hosted runner (GitHub Free):
98
92
#
99
93
100
- # lint: 2 tasks assigned at a time, 1 task per vCPU
94
+ # lint: 3 tasks assigned at a time, 1 task per vCPU
101
95
- name : Run Affected lint
102
- run : yarn nx affected:lint --parallel --max-parallel=2 --quiet
96
+ run : yarn nx affected:lint --parallel=3 --quiet
103
97
104
- # test: 1 task assigned at a time with 2 parallel processes , 1 process per vCPU
98
+ # test: 3 tasks assigned at a time, 1 task per vCPU
105
99
- name : Run Affected test
106
100
id : test
107
- run : yarn nx affected:test --parallel --max-parallel=1 --max-workers=2 --ci --code-coverage
101
+ run : yarn nx affected:test --parallel=3 --ci --code-coverage
108
102
109
103
# build: 2 tasks assigned at a time, 1 task per vCPU
110
104
- name : Run Affected build
111
- run : yarn nx affected:build --exclude=docs --parallel --max-parallel =2
105
+ run : yarn nx affected:build --exclude=docs --parallel=2
112
106
113
- # e2e: 1 tasks assigned at a time, 1 process per agent
107
+ # e2e: 1 task assigned at a time, 1 task per vCPU
114
108
- name : Run Affected e2e
115
- run : yarn nx affected:e2e --max- parallel=1
109
+ run : yarn nx affected:e2e --parallel=1
116
110
117
- # component test: no clue about parallelism here
111
+ # component tests: 1 task assigned at a time, 1 task per vCPU
118
112
- name : Run Affected component tests
119
- run : yarn nx affected -t component-test --parallel=false
113
+ run : yarn nx affected -t component-test --parallel=1
120
114
121
115
- name : Stop Nx Cloud DTE agents
122
116
if : ${{ always() }}
0 commit comments