- Refactored spec's describe to more cleanly determine the superclass… #238
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
# https://github.com/actions/checkout | |
# https://github.com/ruby/setup-ruby | |
# https://github.com/actions/virtual-environments#available-environments | |
# https://github.com/ruby/setup-ruby/blob/master/README.md#supported-platforms | |
'on': [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
name: >- | |
test ${{ matrix.os }} ${{ matrix.ruby }} | |
runs-on: ${{ matrix.os }} | |
if: | | |
!( contains(github.event.pull_request.title, '[ci skip]') | |
|| contains(github.event.pull_request.title, '[skip ci]')) | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
ruby: | |
- '2.7' | |
- '3.0' | |
- '3.1' | |
- '3.2' | |
- '3.3' | |
- head | |
include: | |
- os: windows-latest | |
ruby: ruby | |
- os: macos-latest | |
ruby: ruby | |
- os: ubuntu-latest | |
ruby: ruby | |
rubyopt: "--enable-frozen-string-literal" | |
steps: | |
- name: repo checkout | |
uses: actions/checkout@v4 | |
- name: load ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler: none | |
- name: install hoe | |
run: gem install hoe -N | |
- name: rake test | |
run: | | |
rake test | |
timeout-minutes: 3 | |
isolated: | |
name: >- | |
test:isolated ${{ matrix.os }} ${{ matrix.ruby }} | |
runs-on: ubuntu-latest | |
if: | | |
!( contains(github.event.pull_request.title, '[ci skip]') | |
|| contains(github.event.pull_request.title, '[skip ci]')) | |
steps: | |
- name: repo checkout | |
uses: actions/checkout@v4 | |
- name: load ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ruby | |
bundler: none | |
- name: install hoe | |
run: gem install hoe -N | |
- name: rake test:isolated | |
run: | | |
rake test:isolated RUBYOPT="${{ matrix.rubyopt }}" | |
timeout-minutes: 3 |