2024-07-05 00:34:58 -04:00
|
|
|
name: Ruby CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: cth-ubuntu-latest
|
|
|
|
steps:
|
2024-10-28 22:07:44 -04:00
|
|
|
- uses: https://github.com/ruby/setup-ruby@v1
|
2024-07-05 00:34:58 -04:00
|
|
|
with:
|
2024-09-08 21:30:16 -04:00
|
|
|
ruby-version: 3.3.5
|
2024-07-05 00:34:58 -04:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
with:
|
|
|
|
path: vendor/bundle
|
|
|
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gems-
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
bundle config path vendor/bundle
|
|
|
|
bundle install --jobs 4 --retry 3
|
|
|
|
- name: autoload
|
|
|
|
run: bin/rails zeitwerk:check
|
|
|
|
- name: lint
|
|
|
|
run: bin/rubocop
|
|
|
|
- name: security
|
|
|
|
run: bin/brakeman
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
bin/rails assets:precompile
|
|
|
|
bin/rails test
|