Use terragrunt to provision infrastructure #4
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: Quality | |
concurrency: | |
cancel-in-progress: true | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
tofu-fmt: | |
name: Terraform format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: opentofu/setup-opentofu@v1 | |
- name: Check format | |
id: check | |
run: tofu fmt -check -recursive -diff | |
tflint: | |
name: TFLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: terraform-linters/setup-tflint@v4.0.0 | |
- name: Init TFLint | |
run: tflint --init | |
- name: Run TFLint | |
id: lint | |
run: tflint --recursive -f compact --minimum-failure-severity=warning | |
hclfmt: | |
name: hclfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check terragrunt HCL | |
uses: gruntwork-io/terragrunt-action@v2 | |
with: | |
tf_version: 1.6.0 | |
tg_version: 0.53.0 | |
tg_dir: ./ | |
tg_command: 'hclfmt --terragrunt-check --terragrunt-diff' | |
markdown-lint: | |
name: Markdown lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DavidAnson/markdownlint-cli2-action@v13 | |
with: | |
globs: | | |
**/*.md | |
#**/.terraform/**/*.md | |
markdown-link-check: | |
name: Markdown Link Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
action-lint: | |
name: Action Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Actionlint | |
id: get_actionlint | |
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
- name: Run Actionlint | |
run: ${{ steps.get_actionlint.outputs.executable }} -color | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: ShellCheck | |
uses: ludeeus/action-shellcheck@2.0.0 | |