From 7e76eb5f6e2a23679aa523051dc7aaa302cbe348 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 1 Aug 2022 10:06:13 +1200 Subject: [PATCH] MNT Standardise modules --- .github/workflows/ci.yml | 2 +- .github/workflows/keepalive.yml | 2 +- .travis.yml | 4 ---- README.md | 14 ++++++-------- phpunit.xml.dist | 1 + 5 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d6a9f7..3ee7e9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,5 +12,5 @@ jobs: ci: name: CI # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index ebf9716..4cf5fbb 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -10,7 +10,7 @@ jobs: keepalive: name: Keepalive # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest steps: - name: Keepalive diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c244c3b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -version: ~> 1.0 - -import: - - silverstripe/silverstripe-travis-shared:config/provision/standard-jobs-range.yml diff --git a/README.md b/README.md index 896282d..9659f7a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -SilverStripe CronTask -========================== - [![CI](https://github.com/silverstripe/silverstripe-crontask/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-crontask/actions/workflows/ci.yml) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-crontask/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-crontask/?branch=master) -[![codecov](https://codecov.io/gh/silverstripe/silverstripe-crontask/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-crontask) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) + +Silverstripe CronTask +========================== Gives developers an ability to configure cron-like tasks through the code. @@ -79,7 +78,7 @@ class TestCron implements CronTask } ``` -Run `vendor/bin/sake dev/build flush=1` to make SilverStripe aware of the new +Run `vendor/bin/sake dev/build flush=1` to make Silverstripe aware of the new module. Then execute the crontask controller, it's preferable you do this via the CLI @@ -188,7 +187,6 @@ public function getSchedule() } ``` - The process() method ---------------------- @@ -240,7 +238,7 @@ Code of conduct --------------- When having discussions about this module in issues or pull request please -adhere to the [SilverStripe Community Code of Conduct](https://docs.silverstripe.org/en/contributing/code_of_conduct). +adhere to the [Silverstripe Community Code of Conduct](https://docs.silverstripe.org/en/contributing/code_of_conduct). Thanks ------ diff --git a/phpunit.xml.dist b/phpunit.xml.dist index c9b1080..a4cfa30 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ +