From 735f762c46b6f51c4de280a187e0a52d9d119361 Mon Sep 17 00:00:00 2001 From: moisseev Date: Wed, 17 Jul 2024 16:21:40 +0300 Subject: [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. --- .github/workflows/ci_eslint.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci_eslint.yml b/.github/workflows/ci_eslint.yml index e7220d468..a4fe0fc31 100644 --- a/.github/workflows/ci_eslint.yml +++ b/.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 -- cgit v1.2.3