28 lines
570 B
YAML
28 lines
570 B
YAML
name: Ruby CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: 3.2.0
|
|
- name: Install dependencies
|
|
run: bundle install
|
|
- name: autoload
|
|
run: bin/rails zeitwerk:check
|
|
- name: lint
|
|
run: bin/bundle exec standardrb
|
|
- name: test
|
|
run: |
|
|
bin/rails assets:precompile
|
|
bin/rails test
|