From 948dd5d74820d3ad479cbc5203022c6f30f48901 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Mon, 25 Sep 2023 10:21:10 +0100 Subject: [PATCH] upgrade CI to node 18 LTS --- .github/workflows/nodejs.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6aed19c..40f9fcc 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,9 +1,13 @@ name: Node CI on: + push: + branches: + - main pull_request: branches: - - main + - main + jobs: build: runs-on: ${{ matrix.os }} @@ -14,15 +18,15 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - uses: actions/checkout@v1 - - name: Use Node.js 16.x - uses: actions/setup-node@v1 - with: - node-version: 16.x - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - npm test - env: - CI: true + - uses: actions/checkout@v1 + - name: Use Node.js 18.x + uses: actions/setup-node@v1 + with: + node-version: 18.x + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm test + env: + CI: true