From 3cb0fffb6f890782efeec61571251f7c518de355 Mon Sep 17 00:00:00 2001 From: Yassine Ilmi <9211413+yilmi@users.noreply.github.com> Date: Thu, 27 Jun 2024 01:52:57 +0200 Subject: [PATCH] Install terraform docs in workflow (#3) --- .github/workflows/pre-commit-hooks.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pre-commit-hooks.yaml b/.github/workflows/pre-commit-hooks.yaml index c8a4993..cb00360 100644 --- a/.github/workflows/pre-commit-hooks.yaml +++ b/.github/workflows/pre-commit-hooks.yaml @@ -16,11 +16,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-go@v5 - uses: actions/setup-python@v3 - uses: actions/cache@v3 with: path: ~/.cache/pre-commit key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} + - run: go install github.com/terraform-docs/terraform-docs@v0.18.0 - run: python -m pip install pre-commit - run: pre-commit run --all-files --show-diff-on-failure --color=always shell: bash