name: Test

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

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - name: Use Node.js 14.6.x
        uses: actions/setup-node@v3
        with:
          node-version: 14.6.x
          cache: "npm"
      - run: npm ci
      - run: npm test
