Skip to content

Commit

Permalink
fix(pre_commit): Added terraform setup for pre-commit tasks (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
horiagunica authored Dec 17, 2024
1 parent 022b4cd commit f3342a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/_pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ on:
required: false

jobs:

prerequisites:
name: prep data for matrix strategy
runs-on: ubuntu-latest
Expand Down Expand Up @@ -60,9 +59,14 @@ jobs:
- name: set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.11"
cache: pip

- name: setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: install TF Docs
if: ${{ matrix.pre_commit_hook == 'terraform_docs' }}
working-directory: /tmp
Expand Down Expand Up @@ -131,4 +135,4 @@ jobs:
shell: bash
if: ${{ contains(matrix.pre_commit_hook, 'checkov') }}
run: |
pre-commit run checkov -a
pre-commit run checkov -a

0 comments on commit f3342a1

Please sign in to comment.