Skip to content

chore: Add Ruby 4.0 to CI #2565

chore: Add Ruby 4.0 to CI

chore: Add Ruby 4.0 to CI #2565

Workflow file for this run

name: "CI tests"
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
env:
MT_COMPAT: true
jobs:
tests:
if: ${{ github.repository == 'googleapis/gapic-generator-ruby' }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["3.2", "4.0"]
continue-on-error: ${{ matrix.ruby == '4.0' }}
steps:
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Checkout repo
uses: actions/checkout@v4
- name: Checkout submodules
run: |
git submodule set-url shared/googleapis https://github.com/googleapis/googleapis.git
git submodule set-url shared/gapic-showcase https://github.com/googleapis/gapic-showcase.git
git submodule update --init --recursive
- name: Install dependencies
run: |
gem install --no-document toys
toys bundle install
- name: Run CI
run: |
toys ci