name: Continuous Integration

on:
  push:
    branches:
      - master
  pull_request:
  schedule:
    - cron: '15 6 * * 2' # weekly, on Tuesday morning

env:
  SW_DISABLED: true
  COVERAGE: false

jobs:
  test:
    name: Lint and Tests
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [14.x, 16.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
        cache: 'npm'
    - name: install dependencies
      run: npm ci
    - name: lint style
      run: npm run lint:style
    - name: lint hbs
      run: npm run lint:hbs
    - name: lint js
      run: npm run lint:js
    - name: test
      run: npm run test:ember

name: Continuous Integration

on:
  push:
    branches:
      - master
  pull_request:
  schedule:
    - cron: '15 6 * * 2' # weekly, on Tuesday morning

env:
  SW_DISABLED: true
  COVERAGE: false

jobs:
  test:
    name: Lint and Tests
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [14.x, 16.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
        cache: 'npm'
    - name: install dependencies
      run: npm ci
    - name: lint style
      run: npm run lint:style
    - name: lint hbs
      run: npm run lint:hbs
    - name: lint js
      run: npm run lint:js
    - name: test
      run: npm run test:ember
  build:
    name: Lint and Tests
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [14.x, 16.x]
    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
    - name: install dependencies
      run: npm ci
    - name: test build
      run: npm run build

Add a test build to CI
Add a test build to CI

Ensures we can get a production build without relying on netlify or
another action to fail.
