Pre-commit hooks (#125)

* feat: pre-commit

* empty

* fix: requirements.txt
This commit is contained in:
samerbahri98
2022-10-27 02:15:24 +02:00
committed by GitHub
parent 45ddd65e74
commit 4f3b8ec9e0
4 changed files with 27 additions and 7 deletions

View File

@@ -7,8 +7,8 @@ on:
- master
jobs:
ansible-lint:
name: YAML Lint + Ansible Lint
pre-commit-ci:
name: Pre-Commit
runs-on: ubuntu-latest
steps:
@@ -34,8 +34,5 @@ jobs:
ansible-galaxy install -r collections/requirements.yml
echo "::endgroup::"
- name: Run yamllint
run: yamllint .
- name: Run ansible-lint
run: ansible-lint
- name: Run pre-commit
uses: pre-commit/action@v3.0.0