Skip to content

Commit

Permalink
Adds gha for test on push and PR (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Oct 12, 2021
1 parent 4d1ff85 commit aab6ede
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test on push and PR

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

jobs:
build:

runs-on: ubuntu-latest

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

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

0 comments on commit aab6ede

Please sign in to comment.