Rework professional status to use job_application TRN rather than pos… #19825
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: 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 |