Skip to content

Merge pull request #36 from ifad/release/v1.0.0 #38

Merge pull request #36 from ifad/release/v1.0.0

Merge pull request #36 from ifad/release/v1.0.0 #38

Workflow file for this run

name: Legacy Ruby specs
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
test:
name: Legacy Ruby specs
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.1', '2.2', '2.3', '2.4', '2.5']
gemfile: [am_3.2, am_4.0, am_4.1, am_4.2, am_5.0, am_5.1, am_5.2, am_6.0, am_6.1]
channel: [stable]
exclude:
- ruby-version: '2.1'
gemfile: am_5.0
- ruby-version: '2.1'
gemfile: am_5.1
- ruby-version: '2.1'
gemfile: am_5.2
- ruby-version: '2.1'
gemfile: am_6.0
- ruby-version: '2.1'
gemfile: am_6.1
- ruby-version: '2.2'
gemfile: am_6.0
- ruby-version: '2.2'
gemfile: am_6.1
- ruby-version: '2.3'
gemfile: am_4.0
- ruby-version: '2.3'
gemfile: am_4.1
- ruby-version: '2.3'
gemfile: am_6.0
- ruby-version: '2.3'
gemfile: am_6.1
- ruby-version: '2.4'
gemfile: am_3.2
- ruby-version: '2.4'
gemfile: am_4.0
- ruby-version: '2.4'
gemfile: am_4.1
- ruby-version: '2.4'
gemfile: am_6.0
- ruby-version: '2.4'
gemfile: am_6.1
- ruby-version: '2.5'
gemfile: am_3.2
- ruby-version: '2.5'
gemfile: am_4.0
- ruby-version: '2.5'
gemfile: am_4.1
- ruby-version: '2.5'
gemfile: am_4.2
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
TEST_CONFIG: ./spec/config.github.yml
# Ruby < 2.3 fail with segmentation fault so they are allowed to fail
# On ubuntu-20.04, also 2.3 fails, maybe this is an issue with libcurl
# (should investigate)
continue-on-error: ${{ matrix.channel != 'stable' || matrix.ruby < '2.3' }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run specs
run: bundle exec rake spec