Skip to content

Merge pull request #27 from seanpdoyle/update-ruby-versions #40

Merge pull request #27 from seanpdoyle/update-ruby-versions

Merge pull request #27 from seanpdoyle/update-ruby-versions #40

Workflow file for this run

name: "CI"
on:
push:
branches:
- "master"
pull_request:
jobs:
build:
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.2", "3.3"]
rails: ["6.1", "7.0", "7.1", "7.2"]
include:
- ruby: "3.3"
rails: "main"
env:
RAILS_ENV: test
RAILS_VERSION: "${{ matrix.rails }}"
steps:
- uses: actions/checkout@v2
- name: Install Ruby ${{ matrix.ruby }}
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "${{ matrix.ruby }}"
- name: "Generate lockfile"
run: |
bundle config path vendor/bundle
bundle lock
- name: "Cache Ruby dependencies"
uses: actions/cache@v2
with:
path: vendor/bundle
key: bundle-${{ hashFiles('Gemfile.lock') }}
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: "18.x"
- name: Setup Google Chrome
uses: browser-actions/setup-chrome@latest
- run: chrome --version
- name: Run Setup
run: |
bin/setup
- name: Run Tests
run: |
bundle exec rake