Skip to content

ci: Update GitHub workflows and add configuration #113

ci: Update GitHub workflows and add configuration

ci: Update GitHub workflows and add configuration #113

Workflow file for this run

name: Lint
on: pull_request
permissions:
contents: read
jobs:
actionlint:
name: GitHub Actions
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Lint GitHub Actions Workflow Files
uses: docker://rhysd/actionlint@sha256:daa1edae4a6366f320b68abb60b74fb59a458c17b61938d3c62709d92b231558 # v1.6.27
with:
args: -color
yamllint:
name: YAML
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Setup Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.12'
- name: Install yamllint
run: |
pip install --upgrade pip
pip install yamllint
- name: Lint YAML Files
run: |
yamllint .
terraform-fmt:
name: Terraform
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Setup Terraform
uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: 1.8.0
- name: Lint Terraform Files
run: |
terraform fmt -recursive -check
tflint:
name: TFLint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Setup Terraform
uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: 1.8.0
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: v0.49.0
- name: TFLint
run: |
tflint --init
tflint --recursive --format=compact
terraform-docs:
name: Terraform Docs
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Generate Docs
uses: terraform-docs/gh-actions@7a62208a0090636af2df1b739da46d27fd90bdc6 # v1.1.0
with:
fail-on-diff: true