Sha256: 7c51ca60cd145f040917a7509b5897f3dbfe064e3770597ed600f96f52ef7d41

Contents?: true

Size: 1.3 KB

Versions: 3

Compression:

Stored size: 1.3 KB

Contents

name: test
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        ruby: ["2.6", "2.7", "3.0", "3.1"]
        rails: ["rails5", "rails6", "rails7"]
        database: ["sqlite", "postgres", "mysql"]
        exclude:
          - ruby: "3.0"
            rails: "rails5"
          - ruby: "3.1"
            rails: "rails5"
          - ruby: "2.6"
            rails: "rails7"
    services:
      postgres:
        image: postgres
        env:
          POSTGRES_USER: search_cop
          POSTGRES_PASSWORD: secret
          POSTGRES_DB: search_cop
        ports:
          - 5432:5432
      mysql:
        image: mysql
        env:
          MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
          MYSQL_ROOT_PASSWORD: ""
          MYSQL_DATABASE: search_cop
        ports:
          - 3306:3306
    steps:
      - uses: actions/checkout@v1
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - name: test
        env:
          DATABASE: ${{ matrix.database }}
        run: |
          gem install bundler
          bundle config set --local gemfile "gemfiles/${{ matrix.rails }}.gemfile"
          bundle config set --local path "../vendor/bundle"
          bundle install
          bundle exec rake test
          bundle exec rubocop

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
search_cop-1.2.3 .github/workflows/test.yml
search_cop-1.2.2 .github/workflows/test.yml
search_cop-1.2.1 .github/workflows/test.yml