Skip to content

CI: add Ruby 2.7.1

CI: add Ruby 2.7.1 #5

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
ruby: ['3.4', '3.3', '3.2']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
include:
- os: ubuntu-latest
ruby: 2.7.1
- os: windows-latest
ruby: 2.7.1
runs-on: ${{ matrix.os }}
name: Test with Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: bundle exec rake
gem:
strategy:
fail-fast: false
matrix:
ruby: ['3.4', '3.3', '3.2', '2.7.1']
# macOS is excluded because of the difficulty in assuming a macOS shell behavior.
os: ['ubuntu-latest', 'windows-latest']
include:
- os: ubuntu-latest
shell: bash
- os: windows-latest
shell: cmd
runs-on: ${{ matrix.os }}
name: Gem with Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install
run: rake install
- name: Test command (bash)
if: ${{ matrix.shell == 'bash' }}
run: test/script/command-test.bash
shell: bash
- name: Test command (cmd)
if: ${{ matrix.shell == 'cmd' }}
run: test/script/command-test.bat
shell: cmd