budget/.gitea/workflows/test.yaml

32 lines
693 B
YAML
Raw Normal View History

name: Ruby CI
on:
pull_request:
jobs:
test:
2025-01-15 21:46:24 -05:00
runs-on: ruby-latest
container:
image: ruby:3.4.1-alpine3.20
steps:
- 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