chore: Enable CI

Inspired by
094c36e88e/README.md (matrix-testing)
This commit is contained in:
Sonny Piers 2022-08-18 15:29:07 +02:00
parent e1ded83ea9
commit a3ce00eb3e

23
.github/workflows/CI.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 14, 16, 18 ]
name: Node.js ${{ matrix.node }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test