Skip to content

Test against Rails 8.0 #94

Test against Rails 8.0

Test against Rails 8.0 #94

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
unit_tests:
name: Unit Tests
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
strategy:
fail-fast: false
matrix:
os:
- macos
- ubuntu
ruby:
- 3.1
- 3.2
- 3.3
rails:
- 7.0
- 7.1
- 8.0
allow_failures:
- false
exclude:

Check failure on line 31 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 31, Col: 7): Unexpected value 'exclude'
# Exclude Rails 8.0 tests for Ruby 3.1
- ruby: 3.1
rails: 8.0
env:
BUNDLE_GEMFILE: "gemfiles/rails-${{ matrix.rails }}.gemfile"
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install Appraisal Dependencies
run: bundle exec appraisal install
- name: Test with Rails ${{ matrix.rails }}
run: bundle exec appraisal rails-${{ matrix.rails }} rake spec