name: Build

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js
      uses: actions/setup-node@v1
      with:
        node-version: '12.x'
    - name: Install dependencies
    - run: yarn --frozen-lockfile
    - name: Build      
    - run: yarn build
    - name: Test      
    - run: yarn test
      env:
        CI: true

Set up build in GH actions
build: Set up build in GH actions