Skip to content

Commit e1f7f91

Browse files
authored
CI: Use npm clean install in all worfklows (#695)
1 parent 10f26eb commit e1f7f91

File tree

5 files changed

+17725
-636
lines changed

5 files changed

+17725
-636
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,37 @@ jobs:
3232
- run: curl -L https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.3.5/ec-linux-amd64.tar.gz | tar xzf - -C /opt
3333
- run: /opt/bin/ec-linux-amd64 -v
3434

35-
- name: Install ESLint
36-
run: |
37-
ESLINT_VERSION=$(node -p "require('./package-lock.json').packages['node_modules/eslint'].version")
38-
npm i --no-save eslint@$ESLINT_VERSION
39-
- run: npm run eslint
35+
- name: Install deps
36+
run: npm ci
37+
38+
- name: Lint
39+
run: npm run eslint
4040

4141
test-js:
4242
runs-on: ubuntu-latest
4343

4444
strategy:
4545
matrix:
4646
version:
47-
- '~18.1.0'
48-
- '~22.2.0'
49-
- '>=23.1.0'
47+
- '18.1'
48+
- '22.2'
49+
- 'latest'
5050

5151
steps:
52-
- uses: actions/checkout@v4
5352

54-
- run: node build/make-nojquery
53+
- name: Checkout sources
54+
uses: actions/checkout@v4
55+
56+
- name: Build no-jquery package
57+
run: node build/make-nojquery
58+
59+
- name: Move lockfile
60+
if: ${{ matrix.version != 'latest' }}
61+
shell: bash
62+
run: cp -f js-test/${{ matrix.version }}/package-lock.json package-lock.json
63+
64+
- run: npm ci
5565

56-
- run: npm ci --omit=peer
57-
- run: npm i --no-save "devextreme@${{ matrix.version }}"
58-
- name: Install devextreme-dist
59-
if: ${{ matrix.version == '>=23.1.0' }}
60-
run: npm i --no-save "devextreme-dist@${{ matrix.version }}"
6166
- run: npm run dts
6267
- run: npm run karma
6368
- run: npm run karma-bundled

0 commit comments

Comments
 (0)