Skip to content

build(deps): Bump terraform-docs/gh-actions from 1.2.0 to 1.3.0 #61

build(deps): Bump terraform-docs/gh-actions from 1.2.0 to 1.3.0

build(deps): Bump terraform-docs/gh-actions from 1.2.0 to 1.3.0 #61

Workflow file for this run

name: Linting and formatting tests
on: pull_request
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform Init
id: init
run: terraform init
- name: Terraform Format
id: fmt
run: terraform fmt -check
- name: Terraform Validate
id: validate
run: terraform validate -no-color
- name: Comment PR
if: (steps.init.outcome == 'failure' || steps.fmt.outcome == 'failure' || steps.validate.outcome == 'failure') &&
github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
with:
pr_number: ${{ github.event.pull_request.number }}
comment_tag: test-chart
message: |-
# :x: Terraform Linting, Formatting or Init Failed
#### Terraform Initialization \`${{ steps.init.outcome }}\`
#### Terraform Format 📖\`${{ steps.fmt.outcome }}\`
#### Terraform Validation 🤖\`${{ steps.validate.outcome }}\`