install the aws ebs addon #21
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] | |
jobs: | |
fmt: | |
name: fmt check | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: hashicorp/setup-terraform@v3 | |
with: | |
# renovate: datasource=github-releases depName=hashicorp/terraform | |
terraform_version: "1.7.5" | |
- uses: terramate-io/terramate-action@v1 | |
with: | |
# renovate: datasource=github-releases depName=terramate-io/terramate | |
version: "0.6.0" | |
- name: terramate generate check | |
run: terramate generate --detailed-exit-code | |
- name: terramate fmt check | |
run: terramate fmt --detailed-exit-code | |
- name: terraform fmt check | |
run: terramate run terraform fmt -check -diff | |
validate: | |
name: validate | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: hashicorp/setup-terraform@v3 | |
with: | |
# renovate: datasource=github-releases depName=hashicorp/terraform | |
terraform_version: "1.7.5" | |
- uses: terramate-io/terramate-action@v1 | |
with: | |
# renovate: datasource=github-releases depName=terramate-io/terramate | |
version: "0.6.0" | |
- name: Init | |
run: terramate run terraform init -lockfile=readonly | |
- name: Validate | |
run: terramate run terraform validate | |
lint: | |
name: Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: hashicorp/setup-terraform@v3 | |
with: | |
# renovate: datasource=github-releases depName=hashicorp/terraform | |
terraform_version: "1.7.5" | |
- uses: terramate-io/terramate-action@v1 | |
with: | |
# renovate: datasource=github-releases depName=terramate-io/terramate | |
version: "0.6.0" | |
- uses: terraform-linters/setup-tflint@v4 | |
name: Setup | |
with: | |
# renovate: datasource=github-releases depName=terraform-linters/tflint | |
tflint_version: v0.50.3 | |
- name: Init | |
run: terramate 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: Lint | |
run: terramate run tflint --format compact |