|
| 1 | +--- |
| 2 | +on: [push] |
| 3 | + |
| 4 | +name: DeclareSchema Build |
| 5 | + |
| 6 | +jobs: |
| 7 | + build: |
| 8 | + name: DeclareSchema Build |
| 9 | + runs-on: ubuntu-latest |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + ruby: [ 2.4.5, 2.5.8, 2.6.5, 2.7.1 ] |
| 13 | + gemfile: [ gemfiles/rails_4.gemfile, gemfiles/rails_5.gemfile, gemfiles/rails_6.gemfile ] |
| 14 | + exclude: |
| 15 | + - { gemfile: gemfiles/rails_4.gemfile, ruby: 2.7.1 } |
| 16 | + - { gemfile: gemfiles/rails_5.gemfile, ruby: 2.4.5 } |
| 17 | + - { gemfile: gemfiles/rails_6.gemfile, ruby: 2.4.5 } |
| 18 | + env: |
| 19 | + BUNDLE_GEMFILE: "${{ matrix.gemfile }}" |
| 20 | + steps: |
| 21 | + - name: Checkout Branch |
| 22 | + id: checkout_branch |
| 23 | + uses: actions/checkout@v2 |
| 24 | + - name: Setup Ruby |
| 25 | + id: setup_ruby |
| 26 | + uses: ruby/setup-ruby@v1 |
| 27 | + with: |
| 28 | + bundler: 1.17.3 |
| 29 | + ruby-version: ${{matrix.ruby}} |
| 30 | + - name: Remove Bundler 2 |
| 31 | + id: remove_bundler_2 |
| 32 | + if: ${{ matrix.ruby >= '2.6.5' }} |
| 33 | + run: | |
| 34 | + rm -f /opt/hostedtoolcache/Ruby/2.*/x64/lib/ruby/gems/2.*/specifications/default/bundler-2.*.gemspec |
| 35 | + gem install bundler:1.17.3 --force --default |
| 36 | + gem install bundler -v 1.17.3 |
| 37 | + - name: Appraisals |
| 38 | + id: appraisals |
| 39 | + run: | |
| 40 | + bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle} --gemfile=${{ matrix.gemfile }} |
| 41 | + git config --global user.email "[email protected]" |
| 42 | + git config --global user.name "dummy" |
| 43 | + bundle exec rake test:prepare_testapp[force] |
| 44 | + bundle exec rake test:all < test_responses.txt |
0 commit comments