Skip to content

[CI] Add pre-commit workflow, pre-commit hooks for opentofu, check-yaml, and check-json #5

[CI] Add pre-commit workflow, pre-commit hooks for opentofu, check-yaml, and check-json

[CI] Add pre-commit workflow, pre-commit hooks for opentofu, check-yaml, and check-json #5

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: opentofu/setup-opentofu@v1
- uses: terraform-linters/setup-tflint@v4
- uses: pre-commit/action@v3