name: build
on: [push, pull_request]
jobs:
  build:
    if: "!contains(github.event.head_commit.message, '[skip ci]')"
    strategy:
      fail-fast: false
      matrix:
        include:
        - ruby: 3.0
          gemfile: Gemfile
        - ruby: 2.7
          gemfile: gemfiles/activerecord60.gemfile
        - ruby: 2.6
          gemfile: gemfiles/activerecord52.gemfile
        - ruby: 2.5
          gemfile: gemfiles/activerecord51.gemfile
        - ruby: 2.4
          gemfile: gemfiles/activerecord50.gemfile
    runs-on: ubuntu-latest
    env:
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - uses: ankane/setup-postgres@v1
    - uses: ankane/setup-mysql@v1
    - run: |
        mysqladmin create groupdate_test
        mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
        createdb groupdate_test
    - run: bundle exec rake test

name: build
on: [push, pull_request]
jobs:
  build:
    if: "!contains(github.event.head_commit.message, '[skip ci]')"
    strategy:
      fail-fast: false
      matrix:
        include:
        - ruby: 3.0
          gemfile: Gemfile
        - ruby: 2.7
          gemfile: gemfiles/activerecord60.gemfile
        - ruby: 2.6
          gemfile: gemfiles/activerecord52.gemfile
        - ruby: 2.5
          gemfile: gemfiles/activerecord51.gemfile
        - ruby: 2.4
          gemfile: gemfiles/activerecord50.gemfile
    runs-on: ubuntu-latest
    env:
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - uses: ankane/setup-postgres@v1
      with:
        database: groupdate_test
    - uses: ankane/setup-mysql@v1
    - run: |
        mysqladmin create groupdate_test
        mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
    - run: bundle exec rake test

Use database option on CI
Use database option on CI
