Skip to content

Commit 8c224bb

Browse files
committed
Use npm ci, npx --no-install
1 parent 2b46872 commit 8c224bb

21 files changed

+92
-92
lines changed

.github/actions/run-qunit-tests/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ runs:
8787
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
8888
restore-keys: ${{ runner.os }}-node-modules
8989

90-
- name: Run npm install
90+
- name: Run npm ci
9191
shell: bash
92-
run: npm install --no-audit --no-fund
92+
run: npm ci --no-audit --no-fund
9393

9494
- name: Download artifacts
9595
uses: actions/download-artifact@v4

.github/workflows/build_all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
dotnet-version: 6.0.x
2525

2626
- name: Install dependencies
27-
run: npm install
27+
run: npm ci
2828

2929
- name: Build npm packages
3030
run: npm run all:build

.github/workflows/default_workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
3131
restore-keys: ${{ runner.os }}-node-modules
3232

33-
- name: Run npm install
33+
- name: Run npm ci
3434
run: npm ci --no-audit --no-fund
3535

3636
- name: Run targets
3737
run: >
38-
npx nx run-many
38+
npx --no-install nx run-many
3939
-t test
4040
--exclude
4141
devextreme

.github/workflows/demos_unit_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
4949
restore-keys: ${{ runner.os }}-node-modules
5050

51-
- name: Run npm install
52-
run: npm install --no-audit --no-fund
51+
- name: Run npm ci
52+
run: npm ci --no-audit --no-fund
5353

5454
- name: Run unit tests
5555
working-directory: apps/demos
56-
run: npx nx test
56+
run: npx --no-install nx test

.github/workflows/demos_visual_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ jobs:
5050
restore-keys: ${{ runner.os }}-node-modules
5151

5252
- name: DevExtreme - Install packages
53-
run: npm install --no-audit --no-fund
53+
run: npm ci --no-audit --no-fund
5454

5555
- name: DevExtreme - Build
5656
shell: bash
5757
run: |
5858
node ./tools/scripts/performance_log.js &
59-
npx nx build devextreme-main
59+
npx --no-install nx build devextreme-main
6060
6161
testcafe:
6262
needs: [check-should-run, build]
@@ -96,12 +96,12 @@ jobs:
9696
restore-keys: ${{ runner.os }}-node-modules
9797

9898
- name: DevExtreme - Install packages
99-
run: npm install --no-audit --no-fund
99+
run: npm ci --no-audit --no-fund
100100

101101
- name: DevExtreme - Build
102102
env:
103103
BUILD_TEST_INTERNAL_PACKAGE: true
104-
run: npx nx build devextreme-main
104+
run: npx --no-install nx build devextreme-main
105105

106106
- name: Run Web Server
107107
run: |
@@ -128,7 +128,7 @@ jobs:
128128
CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally
129129
run: |
130130
node ../../tools/scripts/performance_log.js &
131-
npx nx test-testcafe
131+
npx --no-install nx test-testcafe
132132
133133
- name: Show accessibility warnings
134134
if: matrix.STRATEGY == 'accessibility'

.github/workflows/demos_visual_tests_frameworks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
restore-keys: ${{ runner.os }}-node-modules
5151

5252
- name: DevExtreme - Install packages
53-
run: npm install --no-audit --no-fund
53+
run: npm ci --no-audit --no-fund
5454

5555
- name: DevExtreme - Build-all
5656
env:
@@ -124,7 +124,7 @@ jobs:
124124
125125
- name: Prepare bundles
126126
working-directory: apps/demos
127-
run: npx nx prepare-bundles
127+
run: npx --no-install nx prepare-bundles
128128

129129
- name: Demos - Run tsc
130130
working-directory: apps/demos
@@ -177,7 +177,7 @@ jobs:
177177
matrix:
178178
include:
179179
- name: Lint code base (excluding demos)
180-
command: npx nx lint-non-demos
180+
command: npx --no-install nx lint-non-demos
181181
# NOTE: skipped due to enormous number of errors
182182
# - name: Lint demos (1/4)
183183
# command: CONSTEL=1/4 npm run lint-demos
@@ -262,7 +262,7 @@ jobs:
262262
name: devextreme-sources
263263

264264
- name: Install packages
265-
run: npm install --no-audit --no-fund
265+
run: npm ci --no-audit --no-fund
266266

267267
# NOTE: workaround due to wrappers are incorrect NPM packages now
268268
- name: Install wrappers packages
@@ -334,7 +334,7 @@ jobs:
334334
name: devextreme-sources
335335

336336
- name: Install packages
337-
run: npm install --no-audit --no-fund
337+
run: npm ci --no-audit --no-fund
338338

339339
# NOTE: workaround due to wrappers are incorrect NPM packages now
340340
- name: Install wrappers packages
@@ -400,7 +400,7 @@ jobs:
400400
CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally
401401
run: |
402402
node ../../tools/scripts/performance_log.js &
403-
npx nx test-testcafe
403+
npx --no-install nx test-testcafe
404404
405405
- name: Sanitize job name
406406
if: ${{ failure() }}

.github/workflows/lint.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ jobs:
3333
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
3434
restore-keys: ${{ runner.os }}-node-modules
3535

36-
- name: Run npm install
37-
run: npm install --no-audit --no-fund
36+
- name: Run npm ci
37+
run: npm ci --no-audit --no-fund
3838

3939
- name: Compile renovation
4040
working-directory: ./packages/devextreme
4141
run: |
42-
npx nx compile:r
42+
npx --no-install nx compile:r
4343
# Remove package install after upgrade to TypeScript >= 4.6
4444

4545
- name: Lint renovation
4646
working-directory: ./packages/devextreme
47-
run: npx nx lint-renovation
47+
run: npx --no-install nx lint-renovation
4848

4949
TS:
5050
runs-on: devextreme-shr2
@@ -65,30 +65,30 @@ jobs:
6565
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
6666
restore-keys: ${{ runner.os }}-node-modules
6767

68-
- name: Run npm install
69-
run: npm install --no-audit --no-fund
68+
- name: Run npm ci
69+
run: npm ci --no-audit --no-fund
7070

7171
- name: Build
7272
working-directory: ./packages/devextreme
73-
run: npx nx build
73+
run: npx --no-install nx build
7474

7575
- name: Lint TS
7676
working-directory: ./packages/devextreme
7777
env:
7878
DEBUG: eslint:cli-engine
79-
run: npx nx lint-ts
79+
run: npx --no-install nx lint-ts
8080

8181
- name: Lint .d.ts
8282
working-directory: ./packages/devextreme
8383
env:
8484
DEBUG: eslint:cli-engine
85-
run: npx nx lint-dts
85+
run: npx --no-install nx lint-dts
8686

8787
- name: Lint Testcafe tests
8888
working-directory: ./e2e/testcafe-devextreme
8989
env:
9090
DEBUG: eslint:cli-engine
91-
run: npx nx lint
91+
run: npx --no-install nx lint
9292

9393
JS:
9494
runs-on: devextreme-shr2
@@ -109,18 +109,18 @@ jobs:
109109
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
110110
restore-keys: ${{ runner.os }}-node-modules
111111

112-
- name: Run npm install
113-
run: npm install --no-audit --no-fund
112+
- name: Run npm ci
113+
run: npm ci --no-audit --no-fund
114114

115115
- name: Build
116116
working-directory: ./packages/devextreme
117-
run: npx nx build
117+
run: npx --no-install nx build
118118

119119
- name: Lint JS
120120
working-directory: ./packages/devextreme
121121
env:
122122
DEBUG: eslint:cli-engine
123-
run: npx nx lint-js
123+
run: npx --no-install nx lint-js
124124

125125
texts:
126126
runs-on: devextreme-shr2
@@ -141,12 +141,12 @@ jobs:
141141
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
142142
restore-keys: ${{ runner.os }}-node-modules
143143

144-
- name: Run npm install
145-
run: npm install --no-audit --no-fund
144+
- name: Run npm ci
145+
run: npm ci --no-audit --no-fund
146146

147147
- name: Check texts
148148
working-directory: ./packages/devextreme
149-
run: npx nx lint-texts
149+
run: npx --no-install nx lint-texts
150150

151151
CSS:
152152
runs-on: devextreme-shr2
@@ -167,12 +167,12 @@ jobs:
167167
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
168168
restore-keys: ${{ runner.os }}-node-modules
169169

170-
- name: Run npm install
171-
run: npm install --no-audit --no-fund
170+
- name: Run npm ci
171+
run: npm ci --no-audit --no-fund
172172

173173
- name: Lint CSS
174174
working-directory: ./packages/devextreme-scss
175-
run: npx nx lint
175+
run: npx --no-install nx lint
176176

177177
package_lock:
178178
runs-on: devextreme-shr2
@@ -190,7 +190,7 @@ jobs:
190190
run: |
191191
node -v
192192
npm -v
193-
npm install --no-audit --no-fund --ignore-scripts
193+
npm ci --no-audit --no-fund --ignore-scripts
194194
195195
- name: Upload package-lock
196196
uses: actions/upload-artifact@v4
@@ -225,7 +225,7 @@ jobs:
225225
run: |
226226
node -v
227227
npm -v
228-
npm install --no-audit --no-fund --ignore-scripts
228+
npm ci --no-audit --no-fund --ignore-scripts
229229
230230
- name: Check generated component reexports
231231
working-directory: ./packages/devextreme
@@ -262,10 +262,10 @@ jobs:
262262
restore-keys: ${{ runner.os }}-node-modules
263263

264264
- name: Install dependencies
265-
run: npm install --no-audit --no-fund
265+
run: npm ci --no-audit --no-fund
266266

267267
- name: Lint wrappers
268-
run: npx nx run-many -t lint -p devextreme-angular devextreme-react devextreme-vue
268+
run: npx --no-install nx run-many -t lint -p devextreme-angular devextreme-react devextreme-vue
269269

270270
notify:
271271
runs-on: devextreme-shr2

.github/workflows/packages_publishing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
dotnet-version: 6.0.x
4444

4545
- name: Install dependencies
46-
run: npm install --no-audit --no-fund
46+
run: npm ci --no-audit --no-fund
4747

4848
- name: Set timestamp version
4949
if: ${{ env.SET_TIMESTAMP_VERSION == 'true' }}

.github/workflows/playgrounds_tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ jobs:
3838
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
3939
restore-keys: ${{ runner.os }}-node-modules
4040

41-
- name: Run npm install
42-
run: npm install --no-audit --no-fund
41+
- name: Run npm ci
42+
run: npm ci --no-audit --no-fund
4343

4444
- name: Build
4545
working-directory: ./packages/devextreme
46-
run: npx nx build
46+
run: npx --no-install nx build
4747

4848
- name: Zip artifacts
4949
working-directory: ./packages/devextreme
@@ -91,8 +91,8 @@ jobs:
9191
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
9292
restore-keys: ${{ runner.os }}-node-modules
9393

94-
- name: Run npm install
95-
run: npm install --no-audit --no-fund
94+
- name: Run npm ci
95+
run: npm ci --no-audit --no-fund
9696

9797
- name: Download artifacts
9898
uses: actions/download-artifact@v4
@@ -110,7 +110,7 @@ jobs:
110110

111111
- name: Check sources compilation
112112
working-directory: ./apps/${{ matrix.ARGS.platform }}
113-
run: npx nx build
113+
run: npx --no-install nx build
114114

115115
# - name: Run test
116116
# if: ${{ matrix.ARGS.platform != 'angular' }}

.github/workflows/publish-demos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
restore-keys: ${{ runner.os }}-node-modules
2727

2828
- name: DevExtreme - Install packages
29-
run: npm install --no-audit --no-fund
29+
run: npm ci --no-audit --no-fund
3030

3131
- name: DevExtreme - Build-all
3232
env:
@@ -66,7 +66,7 @@ jobs:
6666
node-version: '20'
6767

6868
- name: Install Dependencies
69-
run: npm install
69+
run: npm ci
7070

7171
- name: Download devextreme sources
7272
uses: actions/download-artifact@v4
@@ -148,7 +148,7 @@ jobs:
148148
node-version: 18
149149

150150
- name: Install Dependencies
151-
run: npm install
151+
run: npm ci
152152

153153
- name: Download devextreme sources
154154
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)