name: Tests

on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main, develop]
  schedule:
    # 07:34 on Saturdays
    - cron: "34 7 * * SAT"
  workflow_dispatch:

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        node-version: [10.x, 14.x]
        react-version: [0.13, 0.14, 15, 16, 17]

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
        with:
          fetch-depth: "2"

      - name: Test on Node ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}

      - run: npm install
      - run: npx enzyme-adapter-react-install 16
        env:
          REACT: ${{ matrix.react-version }}
      - run: npm run lint
      - run: npm run test

name: Tests

on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main, develop]
  schedule:
    # 07:34 on Saturdays
    - cron: "34 7 * * SAT"
  workflow_dispatch:

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        node-version: [10.x, 14.x]
        react-version: [0.13, 0.14, 15, 16]

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
        with:
          fetch-depth: "2"

      - name: Test on Node ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}

      - run: npm install
      - run: npx enzyme-adapter-react-install 16
        env:
          REACT: ${{ matrix.react-version }}
      - run: npm run lint
      - run: npm run test

Revert "Test with React 17"
Revert "Test with React 17"

This reverts commit 2b08fda7e19a6dc3b51ccaf0bc401f0e1cf6d04d.
