diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb4b5a0..ab677ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,11 @@ on: jobs: test: runs-on: ubuntu-22.04 - name: Test + name: Test on Node.js ${{ matrix.node-version }} + strategy: + fail-fast: false + matrix: + node-version: [22, 24] steps: - name: Checkout from repository uses: actions/checkout@v4 @@ -21,14 +25,14 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 22 + node-version: ${{ matrix.node-version }} - name: Cache node_modules uses: actions/cache@v4 id: cache-nodemodules with: path: node_modules - key: ${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-${{ hashFiles('**/pnpm-lock.yaml') }} + key: ${{ runner.os }}-node${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install requirements if: steps.cache-nodemodules.outputs.cache-hit != 'true' @@ -36,3 +40,6 @@ jobs: - name: Validate run: pnpm run validate + + - name: Build + run: pnpm run build diff --git a/package.json b/package.json index 96fcb6f..a03de13 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "AWS Lambda extension that forwards function logs to Better Stack.", "main": "index.js", "engines": { - "node": ">=16.0.0", + "node": ">=22.0.0", "pnpm": ">=7.0.0" }, "scripts": {