Skip to content

Add Ruby4.0 to the CI matrix #84

Add Ruby4.0 to the CI matrix

Add Ruby4.0 to the CI matrix #84

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0', 'head']
include:
- ruby-version: 'head'
allow_failures: 'true'
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run test
run: bundle exec rake
continue-on-error: ${{ matrix.allow_failures == 'true' }}
- name: Coveralls
uses: coverallsapp/github-action@v2
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true
- name: Run type check
run: bundle exec steep check --with-expectations