From 451db21e6d5ba48534a7c83f1a53e6f1fee8fb05 Mon Sep 17 00:00:00 2001 From: Chris Barth Date: Tue, 26 Mar 2024 09:28:39 -0500 Subject: [PATCH] Update to Node 18 --- .github/workflows/workflow.yml | 32 ++++++++++++++++++++++++++++---- package.json | 2 +- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4147c5e2..aa36edba 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -8,17 +8,23 @@ on: branches: [master] jobs: - build: + test: runs-on: ubuntu-latest env: CI: true strategy: matrix: - node-version: [14.x, 16.x, 18.x] + os: [ubuntu-latest] + node-version: [18, 20] + experimental: [false] + include: + - os: ubuntu-latest + node-version: latest + experimental: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -29,6 +35,24 @@ jobs: - run: npm ci - run: npm test - name: Codecov - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v3.1.4 with: verbose: true + + lint: + runs-on: ubuntu-latest + env: + CI: true + + strategy: + matrix: + node-version: [18, 20] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run lint diff --git a/package.json b/package.json index d8b9e32b..b7db887e 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "typescript": "^4.8.4" }, "engines": { - "node": ">= 14" + "node": ">= 18" }, "publishConfig": { "access": "public"