Skip to content

Commit

Permalink
Add terraform-ci.yamll
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirrezaNasiri committed Dec 30, 2023
1 parent a3b62ab commit 98c74ae
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/terraform-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Terraform CI
on:
push:
branches:
- main
- dev
pull_request:

jobs:
tflint:
name: Terraform Linter
runs-on: ubuntu-22.04
steps:
-
uses: actions/checkout@v3
name: Checkout source code
-
uses: terraform-linters/setup-tflint@v3
name: Setup TFLint
with:
tflint_version: v0.44.1
-
name: Show version
run: tflint --version
-
name: Init TFLint
run: tflint --init
env:
GITHUB_TOKEN: ${{ github.token }}
-
name: Run TFLint
run: tflint -f compact

0 comments on commit 98c74ae

Please sign in to comment.