feat: setup initial module #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: opentofu/setup-opentofu@v1 | |
with: | |
tofu_version: v1.7.2 # renovate: datasource=github-releases depName=opentofu/opentofu | |
tofu_wrapper: false | |
- run: | | |
tofu init | |
tofu validate | |
tofu fmt | |
- name: Check uncommitted changes | |
run: git diff --exit-code | |
- if: failure() | |
run: echo "::error::Check failed, please run 'tofu validate; tofu fmt' and commit the changes." |