From 3d60ef5871dc7982d3ee2d90995ec952939b0750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?= Date: Sun, 25 Jan 2026 01:44:45 +0100 Subject: [PATCH] Build: Fix CI Changes: 1. Update actions 2. Run `sudo apt-get update` before installing packages to update the apt cache 3. Update Node.js versions; keep v18 as it's used in some places --- .github/workflows/node.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index e39ad91..3013437 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -13,16 +13,25 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 24.x] steps: + - name: Update apt-get cache + run: sudo apt-get update + - name: Install Debian packages run: sudo apt-get install -y libxml2-utils xsltproc - - uses: actions/checkout@v3 - - name: Install Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + + - name: Checkout + uses: actions/checkout@v6 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v6 with: node-version: ${{ matrix.node-version }} - cache: 'npm' + cache: npm + cache-dependency-path: '**/package-lock.json' + - run: npm ci + - run: npm test