Skip to content

Patch rails to version 7.2.2.1 (#729) #1387

Patch rails to version 7.2.2.1 (#729)

Patch rails to version 7.2.2.1 (#729) #1387

Workflow file for this run

name: Quality
on:
pull_request:
push:
branches: [main]
jobs:
rubocop:
# Ruby static code analyzer and formatter
# https://github.com/rubocop/rubocop
name: RuboCop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
erb_lint:
# ERB & HTML static code analyzer and formatter
# https://github.com/Shopify/erb_lint
name: ERB Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run ERB Lint
run: bundle exec erb_lint --lint-all --enable-all-linters
rspec:
name: RSpec
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Set up PostgreSQL
uses: Harmon758/postgresql-action@v1.0.0
with:
postgresql user: test
postgresql password: password
- name: Build app
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec rails db:create RAILS_ENV=test
bundle exec rails db:migrate RAILS_ENV=test
env:
DATABASE_URL: "postgres://test:password@localhost/application_test"
- name: Run RSpec
run: |
bundle exec rspec
env:
DATABASE_URL: "postgres://test:password@localhost/application_test"