Merge pull request #20 from tricknotes/update-ci #32
Workflow file for this run
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: | |
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"] | |
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: "16.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 |