From de635629dc41b1928ca612e410f45672c9fa1431 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Sun, 7 Jan 2024 17:51:11 -0500 Subject: [PATCH] ci: add a job that tests against Rails 6.1 because the scaffold generation changed in Rails 7 --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aa5a37..d7ece61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,24 @@ jobs: - name: Run tests run: bin/test + rails6: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rm Gemfile.lock + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.2" + bundler: latest + - name: "Pin to Rails 6.1" + run: | + bundle remove actionmailer + bundle add actionmailer --version "~> 6.1" --skip-install + bundle add railties --version "~> 6.1" --skip-install + bundle install + - name: Run tests + run: bin/test + user-journey: strategy: fail-fast: false