2024-03-20 18:50:43 -04:00
|
|
|
name: Ruby CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2024-03-20 19:07:37 -04:00
|
|
|
runs-on: ubuntu-latest
|
2024-03-20 18:50:43 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Ruby 3.2.0
|
2024-03-20 18:56:55 -04:00
|
|
|
uses: ruby/setup-ruby@v1
|
2024-03-20 18:50:43 -04:00
|
|
|
with:
|
|
|
|
ruby-version: 3.2.0
|
|
|
|
- name: Install dependencies
|
|
|
|
run: bundle install
|
|
|
|
- name: autoload
|
|
|
|
run: bin/rails zeitwerk:check
|
|
|
|
- name: lint
|
|
|
|
run: bin/bundle exec standardrb
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
bin/rails assets:precompile
|
|
|
|
bin/rails test
|