From a33cce1f3e4574505a43825776d078b924f161bb Mon Sep 17 00:00:00 2001 From: John Boyes Date: Sun, 16 Aug 2020 12:39:57 +0700 Subject: [PATCH] Run the tests nightly (#54) This is to ensure that we continue to have confidence that the functionality works, and so that we are alerted to any regressions. Using the [GitHub Actions scheduler functionality][1] [1]: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bea5dfa..3faa342 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,10 @@ --- name: Test -on: push # yamllint disable-line rule:truthy +on: # yamllint disable-line rule:truthy + # Run the tests on every push, and also at 3am every night + push: + schedule: + - cron: '0 3 * * *' # * is a special character in YAML so you have to quote this string env: ASSERT_VERSION: "| grep -q $HOVERFLY_VERSION" ASSERT_HOVERFLY_NOT_INSTALLED: "! hoverfly -version"