Skip to content

[ETX-2221] Rails 7.2 support - migrations_paths can vary #15

[ETX-2221] Rails 7.2 support - migrations_paths can vary

[ETX-2221] Rails 7.2 support - migrations_paths can vary #15

Workflow file for this run

name: Test
on:
push:
branches:
- "*"
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
ruby-version: [3.1, 3.2, 3.3]
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler: 1
- uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-bundle-${{ matrix.ruby-version }}-v3-${{ hashFiles('rails-data-migrations.gemspec', 'Appraisals') }}
restore-keys: |
${{ runner.os }}-bundle-${{ matrix.ruby-version }}-v3-
- name: Install dependencies
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec appraisal install --path vendor/bundle
- name: Run tests
run: bundle exec appraisal rake