name: multiple_databases_repository_sample_app
on:
  schedule:
    - cron: "0 17 * * *"
  push:
    paths:
      - "contrib/multiple_databases_repository_sample_app/**"
      - ".github/workflows/multiple_databases_repository_sample_app.yml"
      - "support/**"
  pull_request:
    types: [opened, reopened]
    paths:
      - "contrib/multiple_databases_repository_sample_app/**"
      - ".github/workflows/multiple_databases_repository_sample_app.yml"
      - "support/**"
jobs:
  test:
    runs-on: ${{ matrix.os }}
    env:
      WORKING_DIRECTORY: contrib/multiple_databases_repository_sample_app
    strategy:
      fail-fast: false
      matrix:
        include:
          - ruby: ruby-3.0
            gemfile: Gemfile
            os: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - run: test -e ${{ matrix.gemfile }}.lock
        working-directory: ${{ env.WORKING_DIRECTORY }}
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
          working-directory: ${{ env.WORKING_DIRECTORY }}
      - run: bin/rspec
        working-directory: ${{ env.WORKING_DIRECTORY }}

name: multiple_databases_repository_sample_app
on:
  schedule:
    - cron: "0 17 * * *"
  push:
    paths:
      - "contrib/multiple_databases_repository_sample_app/**"
      - ".github/workflows/multiple_databases_repository_sample_app.yml"
      - "support/**"
  pull_request:
    types: [opened, reopened]
    paths:
      - "contrib/multiple_databases_repository_sample_app/**"
      - ".github/workflows/multiple_databases_repository_sample_app.yml"
      - "support/**"
jobs:
  test:
    runs-on: ${{ matrix.os }}
    env:
      WORKING_DIRECTORY: contrib/multiple_databases_repository_sample_app
    strategy:
      fail-fast: false
      matrix:
        include:
          - ruby: ruby-2.7
            gemfile: Gemfile
            os: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - run: test -e ${{ matrix.gemfile }}.lock
        working-directory: ${{ env.WORKING_DIRECTORY }}
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
          working-directory: ${{ env.WORKING_DIRECTORY }}
      - run: bin/rspec
        working-directory: ${{ env.WORKING_DIRECTORY }}

Revert to Ruby 2.7, because Rails 6.1 does not support Ruby 3 yet
Revert to Ruby 2.7, because Rails 6.1 does not support Ruby 3 yet
