Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0051966

Browse files
committed
chore(ci): drop workspace-lint + update affected
1 parent 943e1a6 commit 0051966

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.github/workflows/build-and-test.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ jobs:
8181
# The --agent-count parameter must match the number of strategies run by the dte_agents job
8282
run: yarn nx-cloud start-ci-run --agent-count=4
8383

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
9084
- name: Check formatting
9185
env:
9286
# DTE is disabled to run this step on the DTE coordinator while the agents are set up
@@ -97,26 +91,26 @@ jobs:
9791
# Distribution strategy for 2 vCPUs per hosted runner (GitHub Free):
9892
#
9993

100-
# lint: 2 tasks assigned at a time, 1 task per vCPU
94+
# lint: 3 tasks assigned at a time, 1 task per vCPU
10195
- name: Run Affected lint
102-
run: yarn nx affected:lint --parallel --max-parallel=2 --quiet
96+
run: yarn nx affected:lint --parallel=3 --quiet
10397

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
10599
- name: Run Affected test
106100
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
108102

109103
# build: 2 tasks assigned at a time, 1 task per vCPU
110104
- 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
112106

113-
# e2e: 1 tasks assigned at a time, 1 process per agent
107+
# e2e: 1 task assigned at a time, 1 task per vCPU
114108
- name: Run Affected e2e
115-
run: yarn nx affected:e2e --max-parallel=1
109+
run: yarn nx affected:e2e --parallel=1
116110

117-
# component test: no clue about parallelism here
111+
# component tests: 1 task assigned at a time, 1 task per vCPU
118112
- 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
120114

121115
- name: Stop Nx Cloud DTE agents
122116
if: ${{ always() }}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"build": "nx build",
1414
"test": "nx test",
1515
"test:coverage": "nx test --code-coverage",
16-
"lint": "nx workspace-lint && nx lint",
1716
"affected:apps": "nx affected:apps",
1817
"affected:libs": "nx affected:libs",
1918
"affected:build": "nx affected:build",

0 commit comments

Comments
 (0)