Sha256: 43f628585e379b3c40b2b3e4640bb5ea0dc9418d8d83456a5a1f1a5a15e4de31

Contents?: true

Size: 1.79 KB

Versions: 4

Compression:

Stored size: 1.79 KB

Contents

---
on: [push]

name: DeclareSchema Build

jobs:
  build:
    name: DeclareSchema Build
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ 2.4.5, 2.5.8, 2.6.5, 2.7.1 ]
        gemfile:
        - gemfiles/rails_5_mysql.gemfile
        - gemfiles/rails_5_sqlite.gemfile
        - gemfiles/rails_6_mysql.gemfile
        - gemfiles/rails_6_sqlite.gemfile
        exclude:
        - { gemfile: gemfiles/rails_5_mysql.gemfile, ruby: 2.4.5 }
        - { gemfile: gemfiles/rails_5_sqlite.gemfile, ruby: 2.4.5 }
        - { gemfile: gemfiles/rails_6_mysql.gemfile, ruby: 2.4.5 }
        - { gemfile: gemfiles/rails_6_sqlite.gemfile, ruby: 2.4.5 }
    env:
      BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
    services:
      mysql:
        image: mysql:5.7
        env:
          MYSQL_ALLOW_EMPTY_PASSWORD: yes
        ports:
          - 3306:3306
    steps:
      - name: Checkout Branch
        id: checkout_branch
        uses: actions/checkout@v2
      - name: Setup Ruby
        id: setup_ruby
        uses: ruby/setup-ruby@v1
        with:
          bundler: 1.17.3
          ruby-version: ${{matrix.ruby}}
      - name: Remove Bundler 2
        id: remove_bundler_2
        if: ${{ matrix.ruby >= '2.6.5' }}
        run: |
          rm -f /opt/hostedtoolcache/Ruby/2.*/x64/lib/ruby/gems/2.*/specifications/default/bundler-2.*.gemspec
          gem install bundler:1.17.3 --force --default
          gem install bundler -v 1.17.3
      - name: Appraisals
        id: appraisals
        run: |
          bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle} --gemfile=${{ matrix.gemfile }}
          git config --global user.email "dummy@example.com"
          git config --global user.name "dummy"
          MYSQL_PORT=3306 bundle exec rake test:prepare_testapp[force]
          bundle exec rake test:all

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
declare_schema-0.14.3 .github/workflows/declare_schema_build.yml
declare_schema-0.14.2 .github/workflows/declare_schema_build.yml
declare_schema-0.14.1 .github/workflows/declare_schema_build.yml
declare_schema-0.14.0 .github/workflows/declare_schema_build.yml