From 058852db2f58b071dae9b24515e4bb858f244620 Mon Sep 17 00:00:00 2001 From: "felix.niederwanger@suse.com" Date: Wed, 24 Mar 2021 14:03:53 +0100 Subject: [PATCH] Add regular schedule Periodic test runs (once per week) --- .githooks/pre-commit | 5 +---- .github/workflows/CI.yml | 7 ++++++- 2 files changed, 7 insertions(+), 5 deletions(-) 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: