Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #104 from kaimallea/gh-action
Browse files Browse the repository at this point in the history
build(github): add test action
  • Loading branch information
kaimallea authored Feb 27, 2021
2 parents dee3a23 + 6139fe0 commit 0846b9e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests

on:
push:
branches: [$default-branch]
pull_request:
branches: ['*']

jobs:
test:
name: Test on node ${{ matrix.node-version }}
runs-on: ubuntu-latest

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

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

0 comments on commit 0846b9e

Please sign in to comment.