Skip to content

Since we test against Rails main branch, we can declare Rails 8 as su… #115

Since we test against Rails main branch, we can declare Rails 8 as su…

Since we test against Rails main branch, we can declare Rails 8 as su… #115

Workflow file for this run

name: Tests
on:
push:
pull_request:
types: [opened, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
rails-version:
- "6.0"
- "6.1"
- "7.0"
- "7.1"
- "7.2"
- "edge"
include:
- ruby-version: "3.3"
rails-version: "7.1"
code-coverage: true
exclude:
- ruby-version: "3.0"
rails-version: "edge"
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile
name: Specs - Ruby ${{ matrix.ruby-version }} on Rails ${{ matrix.rails-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }} on Rails ${{ matrix.rails-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run RSpec
env:
CC_TEST_REPORTER_ID: ${{ vars.CC_TEST_REPORTER_ID }}
ENABLE_CODE_COVERAGE: true
run: |
bundle exec rspec --format RspecJunitFormatter --out ${{github.workspace}}/rspec-results.xml --format documentation
- uses: paambaati/codeclimate-action@v6
if: matrix.code-coverage
env:
CC_TEST_REPORTER_ID: ${{ vars.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/coverage.json:simplecov