Skip to content

ci(checks):check code and lint #2

ci(checks):check code and lint

ci(checks):check code and lint #2

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
format-and-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform fmt
id: fmt
run: terraform fmt -check --recursive
continue-on-error: true
- uses: terraform-linters/setup-tflint@v3
name: Setup TFLint
with:
tflint_version: v0.50.2
- name: Show version
run: tflint --version
- name: Init TFLint
run: tflint --init
env:
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
GITHUB_TOKEN: ${{ github.token }}
- name: Run TFLint
run: tflint -f compact