name: base

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

jobs:
  build_and_test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2-beta
        with:
          node-version: 12.7
      - name: Install, build and test
        timeout-minutes: 10
        run: |
          npm ci --no-color --no-progress
          npm run build
          npm run test
        env:
          CI: true

