Skip to content

Bump actionpack from 7.2.1 to 7.2.1.1 in /api #350

Bump actionpack from 7.2.1 to 7.2.1.1 in /api

Bump actionpack from 7.2.1 to 7.2.1.1 in /api #350

Workflow file for this run

name: API
on: push
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
ports:
- 5432:5432
env:
POSTGRES_DB: mssform_test
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
defaults:
run:
working-directory: api
env:
PGHOST: localhost
PGUSER: postgres
RAILS_ENV: test
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: api
- run: bin/rails db:test:prepare
- run: bundle exec rspec
scan_ruby:
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
working-directory: api
- name: Scan for common Rails security vulnerabilities using static analysis
run: bin/brakeman --no-pager
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
working-directory: api
- name: Lint code for consistent style
run: bin/rubocop -f github