kikocis/EonaX-Shared-Resources public
| 1 | name: Terraform |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | paths: |
| 8 | - 'deployment/**' |
| 9 | pull_request: |
| 10 | paths: |
| 11 | - 'deployment/**' |
| 12 | |
| 13 | jobs: |
| 14 | Checks: |
| 15 | runs-on: ubuntu-latest |
| 16 | steps: |
| 17 | - uses: actions/checkout@v4 |
| 18 | with: |
| 19 | token: ${{ secrets.GITHUB_TOKEN }} |
| 20 | |
| 21 | - name: 'Check Terraform files are properly formatted (run "terraform fmt -recursive" to fix)' |
| 22 | run: | |
| 23 | terraform fmt -recursive |
| 24 | git diff --exit-code |