Browse Source

[Test] Use actions/setup-node

The `npm ci`sets up exact versions of Node.js packages listed in the package-lock.json file,
which is ensuring consistency across different test runs and environments.
pull/5058/head
moisseev 1 year ago
parent
commit
735f762c46
  1. 10
      .github/workflows/ci_eslint.yml
  2. 1
      .gitignore
  3. 2770
      package-lock.json

10
.github/workflows/ci_eslint.yml

@ -6,14 +6,16 @@ on:
jobs:
eslint:
runs-on: ubuntu-latest
container:
image: node:18-alpine
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install packages
run: npm ci
- name: Show installed packages
run: npm ls

1
.gitignore

@ -1,3 +1,4 @@
node_modules/
# Code::TidyAll
/.tidyall.d/
.idea

2770
package-lock.json
File diff suppressed because it is too large
View File

Loading…
Cancel
Save