name: CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
        with:
          submodules: true
      - name: "Run everything"
        run: |
          docker-compose pull
          docker-compose build
          docker-compose up -d
          sleep 10
          docker exec umdio_umdio_1 bundle exec rake test_scrape
          docker exec umdio_umdio_1 bundle exec rake test

name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
        with:
          submodules: true
      - name: "Run everything"
        run: |
          docker-compose pull
          docker-compose build
          docker-compose up -d
          sleep 10
          docker exec umdio_umdio_1 bundle exec rake test_scrape
          docker exec umdio_umdio_1 bundle exec rake test

Update GH actions to run on PR
Update GH actions to run on PR