From 84fa25734e890fe11f5e73ab47e3083325a96e1d Mon Sep 17 00:00:00 2001 From: staybyte Date: Thu, 10 Nov 2022 16:35:58 +0100 Subject: [PATCH 1/2] changes test matrix to node 14, 16 and 18 --- .github/workflows/nodejs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2485e3a..7946a4b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,13 +9,13 @@ jobs: name: Build and test code strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v2 - name : Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org/ @@ -40,7 +40,7 @@ jobs: - name : Use Node.js uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version: '18.x' registry-url: https://registry.npmjs.org/ - name: Check version changes From 6b4f3697379330b65a1cfced950c03515c3c3238 Mon Sep 17 00:00:00 2001 From: staybyte Date: Thu, 10 Nov 2022 16:41:48 +0100 Subject: [PATCH 2/2] limit CI to master branch only --- .github/workflows/nodejs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 7946a4b..4dbbba0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,6 +1,10 @@ name: Node.js CI -on: [push] +on: + push: + branches: + - master + pull_request: {} jobs: build: