Andrew Tomaka
53667db5c5
All checks were successful
Ruby CI / test (pull_request) Successful in 1m15s
33 lines
771 B
YAML
33 lines
771 B
YAML
name: Ruby CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: cth-ubuntu-latest
|
|
steps:
|
|
- uses: https://github.com/ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: 3.3.5
|
|
- 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
|