Skip to content

Commit 72f4f8f

Browse files
committed
refactor: enhance tests
1 parent 09e6703 commit 72f4f8f

File tree

1 file changed

+145
-5
lines changed

1 file changed

+145
-5
lines changed

.github/workflows/ci.yml

Lines changed: 145 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
jobs:
1414
lint:
1515
runs-on: ubuntu-latest
16-
name: Linter
16+
name: Linter Old Eslint Version
1717
steps:
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
@@ -28,10 +28,10 @@ jobs:
2828
uses: nrwl/nx-set-shas@v4
2929
- name: Install dependencies
3030
run: npm ci
31-
- name: Lint affected projects
32-
run: npx nx run-many -t lint --concurrency 5 --skipNxCache --parallel=1
31+
- name: Lint affected projects with default settings and old eslint version
32+
run: npx nx run-many -t lint --skipNxCache --parallel=1
3333

34-
lint-multi:
34+
lint-concurrency-off:
3535
runs-on: ubuntu-latest
3636
name: Linter with multithreading feature set to 4
3737
steps:
@@ -48,5 +48,145 @@ jobs:
4848
uses: nrwl/nx-set-shas@v4
4949
- name: Install dependencies
5050
run: npm ci
51-
- name: Lint affected projects
51+
- name: Lint affected projects with concurrency off
52+
run: npx nx run-many -t lint-multi --concurrency off --skipNxCache --parallel=1
53+
54+
lint-concurrency-auto:
55+
runs-on: ubuntu-latest
56+
name: Linter with multithreading feature set to 4
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
5272
run: npx nx run-many -t lint-multi --concurrency auto --skipNxCache --parallel=1
73+
74+
lint-concurrency-1:
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 --concurrency 1 --skipNxCache --parallel=1
93+
94+
lint-concurrency-2:
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 --concurrency 2 --skipNxCache --parallel=1
113+
114+
lint-concurrency-3:
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 --concurrency 3 --skipNxCache --parallel=1
133+
134+
lint-concurrency-4:
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 --concurrency 4 --skipNxCache --parallel=1
153+
154+
lint-concurrency-5:
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 --concurrency 5 --skipNxCache --parallel=1
173+
174+
lint-concurrency-6:
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 --concurrency 6 --skipNxCache --parallel=1

0 commit comments

Comments
 (0)