diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 307e4f3..f51ff1f 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -42,8 +42,5 @@ fi set -e -# If there are whitespace errors, print the offending file names and fail. -git diff-index --check --cached $against -- - # Run yamllint on yaml files -yamllint defaults/*.yml handlers/*.yml meta/*.yml tasks/*.yml vars/*.yml +yamllint . diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index df3d6c1..0e5316a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,6 +1,11 @@ --- name: Test deployment -on: push +'on': + pull_request: + push: + schedule: + # Run every Wednesday at 01:42 + - cron: "42 1 * * 3" jobs: lint: