From 12534b95c0a616030bd50a346e94e153b4b1eb24 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Fri, 1 Aug 2025 11:52:49 +0100 Subject: [PATCH] fix node engine and create a test matrix in CI --- .github/workflows/ci.yml | 23 +++++++++++++++++++---- package.json | 2 +- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78f3740..4e9b9d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,21 +16,36 @@ jobs: timeout-minutes: 10 steps: - - uses: wyvox/action@v1 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + cache: pnpm + node-version: 22 - name: install dependencies run: pnpm i - env: - CI: true - run: pnpm run lint tests: name: Tests runs-on: ubuntu-latest timeout-minutes: 10 + strategy: + matrix: + node-vesion: + - 18 + - 20 + - 22 + - 24 steps: - - uses: wyvox/action@v1 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + cache: pnpm + node-version: ${{matrix.node-vesion}} - name: install dependencies run: pnpm i diff --git a/package.json b/package.json index 20c69f4..5e945a0 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ }, "packageManager": "pnpm@9.12.2", "engines": { - "node": "^20.18.0" + "node": "^18 || ^20 || ^22 || >=24" }, "publishConfig": { "access": "public",