Skip to content

Merge pull request #1123 from okuramasafumi/patch-1 #125

Merge pull request #1123 from okuramasafumi/patch-1

Merge pull request #1123 from okuramasafumi/patch-1 #125

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
tests:
name: Tests with Ruby ${{ matrix.ruby-version }} and Rails ${{ matrix.gemfile }}
runs-on: ubuntu-latest
strategy:
matrix:
gemfile: ["5.0"]
ruby-version: [2.6]
include:
- gemfile: "5.0"
ruby-version: 2.7
- gemfile: "5.1"
ruby-version: 2.6
- gemfile: "5.1"
ruby-version: 2.7
- gemfile: "5.2"
ruby-version: 2.6
- gemfile: "5.2"
ruby-version: 2.7
- gemfile: "6.0"
ruby-version: 2.6
- gemfile: "6.0"
ruby-version: 2.7
- gemfile: "6.1"
ruby-version: 2.7
- gemfile: "6.1"
ruby-version: '3.0'
- gemfile: "7.0"
ruby-version: 3.1
- gemfile: "7.0"
ruby-version: 3.2
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
WKHTMLTOPDF_BIN: /usr/bin/wkhtmltopdf
steps:
- uses: actions/checkout@v3
- name: Install OS dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y wkhtmltopdf
- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests with Ruby ${{ matrix.ruby-version }} and Rails ${{ matrix.gemfile }}
run: bundle exec rake