Skip to content

Bump the gem-dependencies group with 2 updates #18342

Bump the gem-dependencies group with 2 updates

Bump the gem-dependencies group with 2 updates #18342

Workflow file for this run

name: Lint
on:
push:
branches:
- '**'
- '!main'
jobs:
backend-lint:
name: Run backend linting checks
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare application environment
uses: ./.github/actions/prepare-app-env
with:
skip-node: true
- name: Run Rubocop
run: bundle exec rubocop
- name: Run Slim-Lint
run: bundle exec slim-lint app/views app/components
- name: Run Brakeman
run: bundle exec brakeman
frontend-lint:
name: Run frontend JS and SASS linting checks
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare application environment
uses: ./.github/actions/prepare-app-env
with:
skip-ruby: true
- name: Run SASS lint
run: yarn run sass:lint && yarn run js:lint
terraform-lint:
name: Run Terraform check
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Terraform pin version
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 0.15.5
- name: Terraform fmt check
run: |
set -eux
terraform fmt -check -recursive terraform
db-lint:
name: Run Database consistency checks
runs-on: ubuntu-20.04
env:
RAILS_ENV: test
DATABASE_URL: postgis://postgres:postgres@localhost:5432/tvs_test
services:
postgres:
image: postgis/postgis:14-3.4-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare application environment
uses: ./.github/actions/prepare-app-env
with:
skip-node: true
- name: Set up test database
run: bin/rails db:create db:schema:load
- name: Run Database Consistency check
run: bundle exec database_consistency
- name: Upload error file
if: failure()
uses: actions/upload-artifact@v4
with:
name: database_consistency_errors
path: database_consistency_*
retention-days: 5