From e58eaffb2bb2a12cc840ee27698ea1f2b1242c0f Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Tue, 3 Nov 2026 12:10:58 +0100 Subject: [PATCH] M #-: Fix eslint smoke test modifying package-lock.json Use npm ci and node 24 in Github Smoke tests, npm 10 strips libc fields from the lockfile and the following git diff check fails. --- .github/workflows/smoke_tests.yml | 4 ++++ share/smoke_tests/tests/03-eslint-fireedge.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/smoke_tests.yml b/.github/workflows/smoke_tests.yml index 33e3a99daa..32d6bd56c4 100644 --- a/.github/workflows/smoke_tests.yml +++ b/.github/workflows/smoke_tests.yml @@ -24,6 +24,10 @@ jobs: run: sudo apt install -y cppcheck - name: Install AStyle run: sudo apt install -y astyle + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 24 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v6 diff --git a/share/smoke_tests/tests/03-eslint-fireedge.sh b/share/smoke_tests/tests/03-eslint-fireedge.sh index 16e3f305b5..2d7e339e7e 100755 --- a/share/smoke_tests/tests/03-eslint-fireedge.sh +++ b/share/smoke_tests/tests/03-eslint-fireedge.sh @@ -19,7 +19,7 @@ cd src/fireedge # Install dependencies -npm i +npm ci # Run linter npm run lint