Skip to content

Add tests to ensure backward compatibilities #7

Add tests to ensure backward compatibilities

Add tests to ensure backward compatibilities #7

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.3
host:
needs: ruby-versions
name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os:
- ubuntu-latest
- macos-latest
- windows-latest
include:
- { os: macos-15-intel, ruby: 2.3 }
- { os: macos-15-intel, ruby: 2.4 }
- { os: macos-15-intel, ruby: 2.5 }
- { os: windows-latest, ruby: mingw }
- { os: windows-latest, ruby: mswin }
exclude:
- { os: macos-latest, ruby: 2.3 }
- { os: macos-latest, ruby: 2.4 }
- { os: macos-latest, ruby: 2.5 }
- { os: windows-latest, ruby: head }
steps:
- uses: actions/checkout@v7
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test
- run: bundle exec rake build
- uses: actions/upload-artifact@v7
if: >-
matrix.os == 'ubuntu-latest' &&
(matrix.ruby == needs.ruby-versions.outputs.latest)
with:
name: gem
path: pkg/