Skip to content

Commit

Permalink
test: Run test in github actions
Browse files Browse the repository at this point in the history
Replaces the old circleci tests.

Test node 12-16

Previously we were only testing node 12. This adds some newer versions.
In local testing, node 18 and 20 don't work.
  • Loading branch information
joshbetz committed Sep 8, 2023
1 parent a574ff9 commit b6600f1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

#
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test

0 comments on commit b6600f1

Please sign in to comment.