Skip to content

feat(belle-ops) : Add Belle Operation take-home: ops dashboard for vi… #1

feat(belle-ops) : Add Belle Operation take-home: ops dashboard for vi…

feat(belle-ops) : Add Belle Operation take-home: ops dashboard for vi… #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rubocop:
name: RuboCop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version-file: .ruby-version
bundler-cache: true
- run: bin/rubocop
bundler-audit:
name: Bundler Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version-file: .ruby-version
bundler-cache: true
- run: bin/bundler-audit
brakeman:
name: Brakeman
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version-file: .ruby-version
bundler-cache: true
- run: bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error
rspec:
name: RSpec
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/belle_operation_test
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version-file: .ruby-version
bundler-cache: true
- run: bin/rails db:prepare
- run: bundle exec rspec