Skip to content

Bump ruby/setup-ruby from 1.275.0 to 1.276.0 #11411

Bump ruby/setup-ruby from 1.275.0 to 1.276.0

Bump ruby/setup-ruby from 1.275.0 to 1.276.0 #11411

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
env:
SRB_SKIP_GEM_RBIS: true
jobs:
linters:
runs-on: ubuntu-latest
name: Linters
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Ruby
uses: ruby/setup-ruby@ae195bbe749a7cef685ac729197124a48305c1cb # v1.276.0
with:
bundler-cache: true
rubygems: 3.6.2
- name: Run type check
run: bin/typecheck
- name: Run type check with Prism parser
run: bin/typecheck --parser=prism
continue-on-error: true
- name: Lint Ruby files
run: bin/style
- name: Verify documentation
run: bin/docs
- name: Verify README
run: bin/readme
- name: Verify gem RBIs are up-to-date
run: bundle exec exe/tapioca gem --verify
- name: Verify duplicates in shims
run: bundle exec exe/tapioca check-shims
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.2", "3.3", "3.4", "head"]
rails: ["8.0", "current", "main"]
rubygems: ["3.6.2"]
include:
- rails: "main"
experimental: true
- ruby: "head"
experimental: true
name: Ruby ${{ matrix.ruby }} - Rails ${{ matrix.rails }} - RubyGems ${{ matrix.rubygems }}
env:
RAILS_VERSION: ${{ matrix.rails }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install protobuf
run: |
curl -OL https://github.com/google/protobuf/releases/download/v25.3/protoc-25.3-linux-x86_64.zip
unzip protoc-25.3-linux-x86_64.zip -d $HOME/.local
export PATH="$PATH:$HOME/.local/bin"
- name: Remove Gemfile.lock
# Remove Gemfile.lock for Ruby head builds and non-Rails current builds
if: ${{ matrix.ruby == 'head' || matrix.rails != 'current' }}
run: "rm -f Gemfile.lock"
- name: Set up Ruby
uses: ruby/setup-ruby@ae195bbe749a7cef685ac729197124a48305c1cb # v1.276.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
rubygems: ${{ matrix.rubygems }}
- name: Run tests
run: bin/test
continue-on-error: ${{ !!matrix.experimental }}
buildall:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Build (matrix)
needs: [linters, tests]
steps:
- name: Check build matrix status
if: ${{ needs.tests.result != 'success' || needs.linters.result != 'success' }}
run: exit 1