Bump rails from 7.1.3.2 to 7.2.0 #311
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
brakeman: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.3 | |
bundler-cache: true | |
- name: Run brakeman | |
run: bundle exec brakeman | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.3 | |
bundler-cache: true | |
- name: Run rubocop | |
run: bundle exec rubocop | |
rspec: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:12 | |
ports: | |
# will assign a random free host port | |
- 5432/tcp | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
POSTGRES_HOST_AUTH_METHOD: trust | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.3 | |
bundler-cache: true | |
- name: Run RSpec | |
env: | |
# use localhost for the host here because we have specified a container for the job. | |
# If we were running the job on the VM this would be postgres | |
DATABASE_HOST: localhost | |
DATABASE_USERNAME: postgres | |
DATABASE_PORT: ${{ job.services.postgres.ports[5432] }} # get randomly assigned published port | |
RAILS_ENV: test | |
run: | | |
bin/rake db:setup | |
bundle exec rspec --format RSpec::Github::Formatter |