Skip to content

Backport of Rails 7.1 support to release-7.x #2074

Backport of Rails 7.1 support to release-7.x

Backport of Rails 7.1 support to release-7.x #2074

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: CI
on:
push:
branches:
- main
- 'release-*'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler: 'latest'
- name: Install dependencies
run: bundle install
- name: Run linter
run: bundle exec rake rubocop
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, '3.0', 3.1, 3.2]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 'latest'
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake ci
env:
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
test_bootstrap5:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.0']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 'latest'
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake ci
env:
BOOTSTRAP_VERSION: '~> 5.0'
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
test_rails6_0:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.6]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 'latest'
- name: Install dependencies
run: bundle install
env:
RAILS_VERSION: 6.0.5.1
- name: Run tests
run: bundle exec rake ci
env:
RAILS_VERSION: 6.0.5.1
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
test_rails5_2:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 'latest'
- name: Install dependencies
run: bundle install
env:
RAILS_VERSION: 5.2.8.1
- name: Run tests
run: bundle exec rake ci
env:
RAILS_VERSION: 5.2.8.1
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
test_rails6_1:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.0']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 'latest'
- name: Install dependencies
run: bundle install
env:
RAILS_VERSION: 6.1.6.1
- name: Run tests
run: bundle exec rake ci
env:
RAILS_VERSION: 6.1.6.1
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-keeps --skip-action-cable --skip-test'
test_vc3:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.2']
env:
VIEW_COMPONENT_VERSION: ${{ matrix.view_component_version }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 'latest'
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake ci
env:
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
api_test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, '3.0']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler: 'latest'
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake ci
env:
BLACKLIGHT_API_TEST: true
ENGINE_CART_RAILS_OPTIONS: '-a propshaft --api --skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-test'
docker_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docker image
run: docker-compose build app