name: Analyze and Build

on: push

jobs:
  js:
    name: js
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@master
        with: {version: ^12.0}
      - uses: actions/checkout@master
      - run: yarn install --frozen-lockfile
      - run: yarn run bundle-data
      - run: yarn run pretty
      - run: yarn run flow check
      - run: yarn run lint
      - name: Run tests
        run: yarn run test --coverage
      - name: Upload coverage
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
        run: bash <(curl -s https://codecov.io/bash)

  bundle-android:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@master
        with: { version: ^12.0 }
      - uses: actions/checkout@master
      - run: yarn install --frozen-lockfile
      - run: yarn run bundle-data
      - run: yarn run --silent bundle:android

  bundle-ios:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@master
        with: { version: ^12.0 }
      - uses: actions/checkout@master
      - run: yarn install --frozen-lockfile
      - run: yarn run bundle-data
      - run: yarn run --silent bundle:ios


name: Analyze and Build

on: push

jobs:
  js:
    name: Run JavaScript Checks
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@master
        with: {version: ^12.0}
      - uses: actions/checkout@master
      - run: yarn install --frozen-lockfile
      - run: yarn run bundle-data
      - run: yarn run pretty
      - run: yarn run flow check
      - run: yarn run lint
      - name: Run tests
        run: yarn run test --coverage
      - name: Upload coverage
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
        run: bash <(curl -s https://codecov.io/bash)

  bundle-android:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@master
        with: { version: ^12.0 }
      - uses: actions/checkout@master
      - run: yarn install --frozen-lockfile
      - run: yarn run bundle-data
      - run: yarn run --silent bundle:android

  bundle-ios:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@master
        with: { version: ^12.0 }
      - uses: actions/checkout@master
      - run: yarn install --frozen-lockfile
      - run: yarn run bundle-data
      - run: yarn run --silent bundle:ios


Add a better name for the js job
Add a better name for the js job

Signed-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>
