Skip to content

Add Ruby 4 to CI matrix #1693

Add Ruby 4 to CI matrix

Add Ruby 4 to CI matrix #1693

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
tests:
strategy:
matrix:
platform: ["ubuntu-latest", "macos-latest"]
ruby: ["3.2", "3.3", "3.4", "4.0"]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Git repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bundle exec rake
- name: Run RuboCop
run: bundle exec rubocop -D lib/
- name: Upload coverage results
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
files: coverage/coverage.xml
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
check:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}