Change singular -> plural #19
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: Run PreCommit | |
on: | |
push: | |
branchs-ignore: | |
- master | |
jobs: | |
pre-commit: | |
name: pre-commit checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Open Tofu | |
run: | | |
curl --proto '=https' --tlsv1.2 \ | |
-fsSL https://get.opentofu.org/install-opentofu.sh \ | |
-o install-opentofu.sh | |
chmod +x install-opentofu.sh | |
./install-opentofu.sh --install-method deb | |
rm -f install-opentofu.sh | |
- name: Install precommit | |
run: | | |
python -m pip install pre-commit | |
- name: Install hooks | |
run: | | |
pre-commit install --install-hooks | |
- name: Init providers | |
run: | | |
l=$(find . -maxdepth 1 -type d -name "[a-z]*") | |
for i in ${l[@]} ;do echo $i; (cd $i; tofu init); done | |
- name: Run Pre-Commit | |
run: > | |
pre-commit run | |
--all-files | |
--show-diff-on-failure | |
-v |