Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/dotnet-test-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
path: ~/.nuget/packages

- shell: bash
run: cd net/Sample && npm i
run: cd net/Sample && npm ci

- shell: bash
run: dotnet build -c Debug net/DevExtreme.AspNet.Data.sln
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
- run: curl -L https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.3.5/ec-linux-amd64.tar.gz | tar xzf - -C /opt
- run: /opt/bin/ec-linux-amd64 -v

- run: npm i eslint
- name: Install ESLint

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that eslint is listed in package.json so looks like npm ci should be able to restore necessary version without a manual search, nah?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Npm ci can only perform a clean install of everything that is listed in package-lock, but for the lint step we only need the eslint package, there's no reason to install all dependencies

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it's a little bit tricky approach, but formally everything alright here
We take specific version from the package-lock.json and we really need only eslint here for lint checks (for now)
So, everything legal :D

But in future, if eslint will require additional packages (such as plugins), it'll be more tricky to support it this way

run: |
ESLINT_VERSION=$(node -p "require('./package-lock.json').packages['node_modules/eslint'].version")
npm i --no-save eslint@$ESLINT_VERSION
- run: npm run eslint

test-js:
Expand All @@ -50,9 +53,9 @@ jobs:

- run: node build/make-nojquery

- run: npm i --omit=peer
- run: npm ci --omit=peer
- run: npm i --no-save "devextreme@${{ matrix.version }}"
- name: Instal devextreme-dist
- name: Install devextreme-dist
if: ${{ matrix.version == '>=23.1.0' }}
run: npm i --no-save "devextreme-dist@${{ matrix.version }}"
- run: npm run dts
Expand Down
Loading