diff --git a/.github/workflows/automated-tests.yaml b/.github/workflows/automated-tests.yaml index dd01a36a00..d77e964a14 100644 --- a/.github/workflows/automated-tests.yaml +++ b/.github/workflows/automated-tests.yaml @@ -34,6 +34,25 @@ jobs: - name: "Run linter tests" run: | node --run test:lint + min-node-version-install: + runs-on: ubuntu-slim + timeout-minutes: 15 + steps: + - name: "Checkout code" + uses: actions/checkout@v7 + - name: "Get minimum node version" + id: get-version + run: | + NODE_VERSION="$(cat package.json | sed -rn 's|.*"node": ">=([0-9]+\.[0-9]+\.[0-9]+).*|\1|p')" + echo "Minimal node version is $NODE_VERSION" + echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT + - name: Set up Node.js + uses: actions/setup-node@v6 + with: + node-version: ${{ steps.get-version.outputs.version }} + - name: "Install dependencies" + run: | + node --run install-mm:dev test: runs-on: ubuntu-24.04 timeout-minutes: 30 diff --git a/package-lock.json b/package-lock.json index 1a3fe4ce62..b49066c852 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,7 +58,7 @@ "vitest": "^4.1.9" }, "engines": { - "node": ">=22.21.1 <23 || >=24" + "node": ">=22.22.2 <23 || >=24" }, "optionalDependencies": { "electron": "^43.0.0" diff --git a/package.json b/package.json index 6ff55ae75a..48d821d0ba 100644 --- a/package.json +++ b/package.json @@ -132,6 +132,6 @@ "electron": "^43.0.0" }, "engines": { - "node": ">=22.21.1 <23 || >=24" + "node": ">=22.22.2 <23 || >=24" } }