Skip to content

Commit

Permalink
chore: add workflow to test code on push
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemaker1 committed Mar 6, 2021
1 parent ec01ec2 commit 87026b0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/node-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Node.js Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

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

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

0 comments on commit 87026b0

Please sign in to comment.