Skip to content

Commit

Permalink
upgrade CI to node 18 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Sep 25, 2023
1 parent a526093 commit 948dd5d
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Node CI

on:
push:
branches:
- main
pull_request:
branches:
- main
- main

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -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

0 comments on commit 948dd5d

Please sign in to comment.