name: CI

on:
  push:
  schedule:
    - cron:  "0 6 * * 6" # 06:00 every Saturday

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: dentarg/postgres@v1
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
    - run: bundle exec rake
      env:
        TEST_DATABASE_URL: "${{ env.POSTGRES_URL }}"

name: CI

on:
  push:
  schedule:
    - cron:  "0 6 * * 6" # 06:00 every Saturday

jobs:
  build:
    runs-on: ubuntu-18.04
    steps:
    - uses: actions/checkout@v2
    - uses: dentarg/postgres@v1
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
    - run: bundle exec rake
      env:
        TEST_DATABASE_URL: "${{ env.POSTGRES_URL }}"

Test on ubuntu-18.04 (what we deploy to)
Test on ubuntu-18.04 (what we deploy to)

ubuntu-latest is 18.04, but soon it will be ubuntu-20.04.

This doesn't change that often, so better we update it manually (when we
change it in production).
