Skip to content

Test on GitHub actions #3

Test on GitHub actions

Test on GitHub actions #3

Workflow file for this run

name: "Tests"
on:
pull_request:
types: [edited, opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Restore npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm install
- name: Run Tests with Coverage
run: npm test -- --coverage
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2