Skip to content

fix(deps): support Rails 7 syntax #67

fix(deps): support Rails 7 syntax

fix(deps): support Rails 7 syntax #67

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_LOCKILE: ${{ 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
- uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage
coverage:
name: Report code coverage
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
with:
name: code-coverage
path: coverage
- uses: paambaati/codeclimate-action@v6
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}