budget/.gitea/workflows/test.yaml
Andrew Tomaka 1ee5937b19
All checks were successful
Deploy / deploy (push) Successful in 1m40s
Update to Ruby 3.3.6 (#44)
Reviewed-on: #44
2024-11-26 23:43:58 -05:00

31 lines
769 B
YAML

name: Ruby CI
on:
pull_request:
jobs:
test:
runs-on: cth-ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: https://github.com/ruby/setup-ruby@217c988b8c2bf2bacb2d5c78a7e7b18f8c34daed
- 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