Merge branch 'main' into 528-add-deploy-workflow #2463
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: Lint | |
on: | |
push: | |
branches: | |
- "**" | |
- "!main" | |
jobs: | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Prepare application environment | |
uses: ./.github/actions/prepare-app-env | |
- name: Run Prettier | |
run: yarn prettier --check --ignore-unknown --log-level warn '**/*' | |
rubocop: | |
name: Rubocop | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Prepare application environment | |
uses: ./.github/actions/prepare-app-env | |
- name: Run Rubocop | |
run: bin/bundle exec rubocop | |
terraform: | |
name: Terraform | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup terraform | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: 1.0.10 | |
- name: Check formatting | |
run: terraform fmt -check | |
working-directory: terraform/paas | |
- name: Validate | |
run: | | |
terraform init -backend=false | |
terraform validate -no-color | |
working-directory: terraform/paas |