Skip to content

fix(deps): support Rails 7 syntax #73

fix(deps): support Rails 7 syntax

fix(deps): support Rails 7 syntax #73

Workflow file for this run

on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_call:
permissions:
contents: read
jobs:
test:
name: Run specs
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.0', '3.1', '3.2', '3.3']
rails: ['6.1', '7.0', '7.1']
env:
BUNDLE_LOCKFILE: rails-${{ matrix.rails }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler-cache: true
- name: Run specs
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: bin/rspec
coverage:
name: Report code coverage
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
rubygems: latest
bundler-cache: true
- uses: paambaati/codeclimate-action@v6
with:
coverageCommand: bin/rspec
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage