From da30f8d1e3512f31d9747c94cb5ea02c39ac3593 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 29 Aug 2023 15:32:23 +1200 Subject: [PATCH] MNT Run module-standardiser --- .github/workflows/keepalive.yml | 17 +++++++++++++++++ .github/workflows/merge-up.yml | 17 +++++++++++++++++ .github/workflows/update-js.yml | 17 +++++++++++++++++ .scrutinizer.yml | 17 ----------------- license.md => LICENSE | 0 5 files changed, 51 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/keepalive.yml create mode 100644 .github/workflows/merge-up.yml create mode 100644 .github/workflows/update-js.yml delete mode 100644 .scrutinizer.yml rename license.md => LICENSE (100%) diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml new file mode 100644 index 00000000..ffeabacd --- /dev/null +++ b/.github/workflows/keepalive.yml @@ -0,0 +1,17 @@ +name: Keepalive + +on: + # At 8:40 PM UTC, on day 21 of the month + schedule: + - cron: '40 20 21 * *' + workflow_dispatch: + +jobs: + keepalive: + name: Keepalive + # Only run cron on the tractorcow-farm account + if: (github.event_name == 'schedule' && github.repository_owner == 'tractorcow-farm') || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Keepalive + uses: silverstripe/gha-keepalive@v1 diff --git a/.github/workflows/merge-up.yml b/.github/workflows/merge-up.yml new file mode 100644 index 00000000..88f55a38 --- /dev/null +++ b/.github/workflows/merge-up.yml @@ -0,0 +1,17 @@ +name: Merge-up + +on: + # At 8:40 PM UTC, only on Saturday + schedule: + - cron: '40 20 * * 6' + workflow_dispatch: + +jobs: + merge-up: + name: Merge-up + # Only run cron on the tractorcow-farm account + if: (github.event_name == 'schedule' && github.repository_owner == 'tractorcow-farm') || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Merge-up + uses: silverstripe/gha-merge-up@v1 diff --git a/.github/workflows/update-js.yml b/.github/workflows/update-js.yml new file mode 100644 index 00000000..f225311f --- /dev/null +++ b/.github/workflows/update-js.yml @@ -0,0 +1,17 @@ +name: Update JS + +on: + workflow_dispatch: + # Run on a schedule of once per quarter + schedule: + - cron: '40 20 1 */3 *' + +jobs: + update-js: + name: Update JS + # Only run cron on the tractorcow-farm account + if: (github.event_name == 'schedule' && github.repository_owner == 'tractorcow-farm') || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Update JS + uses: silverstripe/gha-update-js@v1 diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 107542ee..00000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,17 +0,0 @@ -inherit: true - -build: - environment: - php: 8.1 - nodes: - analysis: - tests: - override: [php-scrutinizer-run] - -checks: - php: - code_rating: true - duplication: true - -filter: - paths: [code/*, tests/*] diff --git a/license.md b/LICENSE similarity index 100% rename from license.md rename to LICENSE