Skip to content

Commit

Permalink
ci: add GitHub Action for testing code on push and pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
birjj committed Sep 15, 2020
1 parent 91318d0 commit c09896d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test
on: [push, pull_request]

jobs:
test:
name: Run tests
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Node.js setup
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm test

0 comments on commit c09896d

Please sign in to comment.