budget/.gitea/workflows/test.yaml

34 lines
752 B
YAML
Raw Normal View History

2024-03-20 18:50:43 -04:00
name: Ruby CI
on:
pull_request:
jobs:
test:
2024-07-04 23:36:35 -04:00
runs-on: cth-ubuntu-latest
2024-07-04 23:39:25 -04:00
steps:
2024-07-04 23:36:35 -04:00
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.1
2024-03-20 18:50:43 -04:00
- uses: actions/checkout@v4
2024-04-25 23:31:08 -04:00
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
2024-03-20 18:50:43 -04:00
- name: Install dependencies
2024-04-25 23:31:08 -04:00
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
2024-03-20 18:50:43 -04:00
- name: autoload
run: bin/rails zeitwerk:check
- name: lint
2024-06-23 09:28:39 -04:00
run: bin/rubocop
- name: security
run: bin/brakeman
2024-03-20 18:50:43 -04:00
- name: test
run: |
bin/rails assets:precompile
bin/rails test