Skip to content

CI: test with Ruby 3.3 #40

CI: test with Ruby 3.3

CI: test with Ruby 3.3 #40

Workflow file for this run

name: CI
on:
- push
jobs:
test:
name: Test with MRI ${{ matrix.ruby }}, Gemfile-${{ matrix.gemfile }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
gemfile:
- jekyll3
- jekyll4
steps:
- name: Checkout git repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup MRI ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Cache vendor/bundle-${{ matrix.gemfile }} for MRI ${{ matrix.ruby }}
uses: actions/cache@v3
with:
path: vendor/bundle-${{ matrix.gemfile }}
key: ${{ runner.os }}-mri-${{ matrix.ruby }}-bundle-${{ matrix.gemfile }}-${{ hashFiles(format('Gemfile-{0}', matrix.gemfile)) }}
restore-keys: |
${{ runner.os }}-mri-${{ matrix.ruby }}-bundle-${{ matrix.gemfile }}-
- name: Install gem dependencies
run: |
echo 'gem: --no-document' > ~/.gemrc
gem update --system >/dev/null
echo "Using RubyGems $(gem --version)"
bundle config --local gemfile Gemfile-${{ matrix.gemfile }}
bundle config --local path vendor/bundle-${{ matrix.gemfile }}
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake