Update CI.yml #158
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: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
- name: Bundle | |
run: | | |
gem uninstall bundler | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
- name: Lint | |
run: bundle exec rbprettier --check {lib,test}/**/*.rb | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: [3.2, 3.3] | |
rails: [7.2, 7.1] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup System | |
run: | | |
sudo apt-get install libsqlite3-dev | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Bundle | |
env: | |
RAILS_VERSION: ${{ matrix.rails }} | |
run: | | |
gem uninstall bundler | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
- name: Test | |
env: | |
RAILS_VERSION: ${{ matrix.rails }} | |
run: bundle exec rake |