Merge pull request #1028 from Tiikara/master #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |