Fix rails 8 #107
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 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_PATH: vendor/bundle | |
strategy: | |
matrix: | |
ruby: [3.0, 3.3] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Restore cache | |
uses: actions/cache@v4 | |
with: | |
key: gems | |
path: | | |
gemfiles | |
vendor/bundle | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Set up Hotsheet | |
run: bundle && bundle exec appraisal install && bundle exec rails db:create db:schema:load | |
- name: Run tests | |
run: bundle exec appraisal bin/check | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
- name: Install dependencies | |
run: bundle | |
- name: Run linters | |
run: bin/fastcheck |