Skip to content

Merge pull request #22 from tricknotes/test-on-rails-main #37

Merge pull request #22 from tricknotes/test-on-rails-main

Merge pull request #22 from tricknotes/test-on-rails-main #37

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: ["2.7", "3.0", "3.1", "3.2"]
rails: ["6.1", "7.0"]
include:
- ruby: "3.2"
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