aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2024-07-17 16:21:40 +0300
committermoisseev <moiseev@mezonplus.ru>2024-07-17 18:07:29 +0300
commit735f762c46b6f51c4de280a187e0a52d9d119361 (patch)
tree51038022c5006c010af8a3629a0a44e033f8e51d /.github
parent27b858776562a743a6036d5f6e1ee022d2006f79 (diff)
downloadrspamd-735f762c46b6f51c4de280a187e0a52d9d119361.tar.gz
rspamd-735f762c46b6f51c4de280a187e0a52d9d119361.zip
[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.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci_eslint.yml10
1 files changed, 6 insertions, 4 deletions
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