Skip to content

Commit

Permalink
Set up the test suite in Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Oct 26, 2020
1 parent e00d63c commit 52fdba2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Test Suite
runs-on: ubuntu-latest

steps:

- name: Set up Node
uses: actions/setup-node@v1

- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci

- name: Run test suite
run: npm test

- name: Collect coverage
run: npm run coverage

0 comments on commit 52fdba2

Please sign in to comment.