2024-03-20 18:50:43 -04:00
|
|
|
name: Ruby CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2024-03-20 21:08:57 -04:00
|
|
|
runs-on: ubuntu-latest
|
2024-03-20 18:50:43 -04:00
|
|
|
steps:
|
2024-03-20 21:11:10 -04:00
|
|
|
- name: Install Node
|
2024-03-20 21:12:22 -04:00
|
|
|
run: |
|
|
|
|
apt-get update
|
|
|
|
apt-get install nodejs
|
2024-03-20 18:50:43 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-03-20 21:08:57 -04:00
|
|
|
- name: Set up Ruby
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: 3.2.0
|
2024-03-20 18:50:43 -04:00
|
|
|
- name: Install dependencies
|
2024-03-20 19:46:14 -04:00
|
|
|
run: bundle install
|
2024-03-20 18:50:43 -04:00
|
|
|
- name: autoload
|
|
|
|
run: bin/rails zeitwerk:check
|
|
|
|
- name: lint
|
|
|
|
run: bin/bundle exec standardrb
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
bin/rails assets:precompile
|
|
|
|
bin/rails test
|