Skip to content

Add Rails request specs with ActiveRecord models and fixtures #132

Add Rails request specs with ActiveRecord models and fixtures

Add Rails request specs with ActiveRecord models and fixtures #132

Workflow file for this run

name: Ruby
on:
push:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
ruby:
- "3.2"
- "3.3"
- "3.4"
- "4.0"
- "ruby-head"
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
- name: Run tests
run: bundle exec rspec
- name: Run lint
run: bundle exec rubocop
# The release workflow seems to have some issues. I'll reinstate it when I have time to fix it.
# The failing check on `main` doesn't inspire confidence.
# In the meantime, I'll release manually.
#
# release:
# name: Publish gem to RubyGems.org
# runs-on: ubuntu-latest
# needs: build
# if: github.ref == 'refs/heads/main'
# permissions:
# id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
# contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# - name: Release gem
# uses: rubygems/release-gem@v1