99env :
1010 NX_NON_NATIVE_HASHER : true
1111 NX_CLOUD_ACCESS_TOKEN : ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
12+ # Disable Nx optimizations for clean performance measurement
13+ NX_TUI : false
14+ NX_TASKS_RUNNER_DYNAMIC_OUTPUT : false
15+ NX_SKIP_LOG_GROUPING : true
16+ NX_GENERATE_QUIET : true
17+ NX_VERBOSE_LOGGING : false
18+ NX_PERF_LOGGING : false
19+ NX_SKIP_NX_CACHE : true
20+ NX_SKIP_REMOTE_CACHE : true
21+ NX_DAEMON : false
22+ NX_PARALLEL : 1
23+ NX_BATCH_MODE : false
24+ NX_CACHE_PROJECT_GRAPH : false
1225
1326jobs :
1427 lint :
@@ -29,11 +42,14 @@ jobs:
2942 - name : Install dependencies
3043 run : npm ci
3144 - name : Lint affected projects with default settings and old eslint version
32- run : npx nx run-many -t lint --skipNxCache --parallel=1
45+ run : npx nx run-many -t lint
3346
34- lint-concurrency-off :
47+ lint-concurrency :
3548 runs-on : ubuntu-latest
36- name : Linter with multithreading feature set to off
49+ name : Linter with multithreading feature set to ${{ matrix.concurrency }}
50+ strategy :
51+ matrix :
52+ concurrency : ['off', 'auto', '1', '2', '3', '4', '5', '6']
3753 steps :
3854 - name : Checkout repository
3955 uses : actions/checkout@v4
@@ -48,145 +64,5 @@ jobs:
4864 uses : nrwl/nx-set-shas@v4
4965 - name : Install dependencies
5066 run : npm ci
51- - name : Lint affected projects with concurrency off
52- run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency off --skipNxCache --parallel=1
53-
54- lint-concurrency-auto :
55- runs-on : ubuntu-latest
56- name : Linter with multithreading feature set to auto
57- steps :
58- - name : Checkout repository
59- uses : actions/checkout@v4
60- with :
61- fetch-depth : 0
62- - name : Set up Node.js
63- uses : actions/setup-node@v4
64- with :
65- node-version-file : .nvmrc
66- cache : npm
67- - name : Set base and head for Nx affected commands
68- uses : nrwl/nx-set-shas@v4
69- - name : Install dependencies
70- run : npm ci
71- - name : Lint affected projects with concurrency auto
72- run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency auto --skipNxCache --parallel=1
73-
74- lint-concurrency-one :
75- runs-on : ubuntu-latest
76- name : Linter with multithreading feature set to 1
77- steps :
78- - name : Checkout repository
79- uses : actions/checkout@v4
80- with :
81- fetch-depth : 0
82- - name : Set up Node.js
83- uses : actions/setup-node@v4
84- with :
85- node-version-file : .nvmrc
86- cache : npm
87- - name : Set base and head for Nx affected commands
88- uses : nrwl/nx-set-shas@v4
89- - name : Install dependencies
90- run : npm ci
91- - name : Lint affected projects with concurrency 1
92- run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency 1 --skipNxCache --parallel=1
93-
94- lint-concurrency-two :
95- runs-on : ubuntu-latest
96- name : Linter with multithreading feature set to 2
97- steps :
98- - name : Checkout repository
99- uses : actions/checkout@v4
100- with :
101- fetch-depth : 0
102- - name : Set up Node.js
103- uses : actions/setup-node@v4
104- with :
105- node-version-file : .nvmrc
106- cache : npm
107- - name : Set base and head for Nx affected commands
108- uses : nrwl/nx-set-shas@v4
109- - name : Install dependencies
110- run : npm ci
111- - name : Lint affected projects with concurrency 2
112- run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency 2 --skipNxCache --parallel=1
113-
114- lint-concurrency-three :
115- runs-on : ubuntu-latest
116- name : Linter with multithreading feature set to 3
117- steps :
118- - name : Checkout repository
119- uses : actions/checkout@v4
120- with :
121- fetch-depth : 0
122- - name : Set up Node.js
123- uses : actions/setup-node@v4
124- with :
125- node-version-file : .nvmrc
126- cache : npm
127- - name : Set base and head for Nx affected commands
128- uses : nrwl/nx-set-shas@v4
129- - name : Install dependencies
130- run : npm ci
131- - name : Lint affected projects with concurrency 3
132- run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency 3 --skipNxCache --parallel=1
133-
134- lint-concurrency-four :
135- runs-on : ubuntu-latest
136- name : Linter with multithreading feature set to 4
137- steps :
138- - name : Checkout repository
139- uses : actions/checkout@v4
140- with :
141- fetch-depth : 0
142- - name : Set up Node.js
143- uses : actions/setup-node@v4
144- with :
145- node-version-file : .nvmrc
146- cache : npm
147- - name : Set base and head for Nx affected commands
148- uses : nrwl/nx-set-shas@v4
149- - name : Install dependencies
150- run : npm ci
151- - name : Lint affected projects with concurrency 4
152- run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency 4 --skipNxCache --parallel=1
153-
154- lint-concurrency-five :
155- runs-on : ubuntu-latest
156- name : Linter with multithreading feature set to 5
157- steps :
158- - name : Checkout repository
159- uses : actions/checkout@v4
160- with :
161- fetch-depth : 0
162- - name : Set up Node.js
163- uses : actions/setup-node@v4
164- with :
165- node-version-file : .nvmrc
166- cache : npm
167- - name : Set base and head for Nx affected commands
168- uses : nrwl/nx-set-shas@v4
169- - name : Install dependencies
170- run : npm ci
171- - name : Lint affected projects with concurrency 5
172- run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency 5 --skipNxCache --parallel=1
173-
174- lint-concurrency-six :
175- runs-on : ubuntu-latest
176- name : Linter with multithreading feature set to 6
177- steps :
178- - name : Checkout repository
179- uses : actions/checkout@v4
180- with :
181- fetch-depth : 0
182- - name : Set up Node.js
183- uses : actions/setup-node@v4
184- with :
185- node-version-file : .nvmrc
186- cache : npm
187- - name : Set base and head for Nx affected commands
188- uses : nrwl/nx-set-shas@v4
189- - name : Install dependencies
190- run : npm ci
191- - name : Lint affected projects with concurrency 6
192- run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency 6 --skipNxCache --parallel=1
67+ - name : Lint affected projects with concurrency ${{ matrix.concurrency }}
68+ run : npx nx run-many -t lint-multi --exclude models-transformers --concurrency ${{ matrix.concurrency }}
0 commit comments