Skip to content

Upgrade dependencies #51

Upgrade dependencies

Upgrade dependencies #51

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
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/Gemfile-${{ matrix.gemfile }}
BUNDLE_PATH: ${{ github.workspace }}/vendor/bundle-${{ matrix.gemfile }}
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@v4
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 "Using RubyGems $(gem --version)"
echo "Using $(bundle --version)"
echo 'gem: --no-document' > ~/.gemrc
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake