Skip to content

Commit

Permalink
Add GitHub Actions to run tests (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick authored Mar 26, 2022
1 parent dee3614 commit 82dc5a8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Node CI

on: [push]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8, 10, 12, 14, 16]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
npm ci
- name: npm test
run: npm test

0 comments on commit 82dc5a8

Please sign in to comment.