Skip to content

Framework / spec: refactored author info #69

Framework / spec: refactored author info

Framework / spec: refactored author info #69

Workflow file for this run

name: CI
on:
pull_request:
paths-ignore:
- '*.md'
- '*.txt'
push:
branches: [ main ]
tags-ignore:
- '*'
paths:
- lib/**
- app/**
- config/**
- spec/**
- Gemfile*
- '*.gemspec'
- .github/workflows/ci.yml
jobs:
lint:
name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- head
- 3.3
- 3.2
- truffleruby-head
rails:
- head
- 8.0
- 7.2
include:
# TruffleRuby
- { ruby: 'truffleruby', rails: '7.2', allow-fail: true }
# JRuby
#- { ruby: 'jruby', rails: '7.2', allow-fail: true }
#- { ruby: 'jruby-head', rails: '7.2', allow-fail: true }
exclude:
# TruffleRuby
- { ruby: 'truffleruby-head', rails: 'head' }
- { ruby: 'truffleruby-head', rails: '8.0' }
env:
RAILS_VERSION: "${{ matrix.rails }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- uses: paambaati/codeclimate-action@v9
env:
CC_TEST_REPORTER_ID: c0d55225dd080a6c275d1312813d3ed860fa93f6f2fc7a4d37a30c9d6b4e9418
with:
coverageCommand: bundle exec rake
continue-on-error: ${{ matrix.allow-fail || false }}
id: test
- name: Lint code for consistent style
run: bin/rubocop -f github
if: ${{ matrix.ruby == 'head' && matrix.rails == 'head' }}
- name: >-
Test ${{ steps.test.outcome }}
run: |
ruby -v
bin/rails -v