From 751bb2e676445f9362e8088dc463e38b6dfcc232 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 31 Jan 2024 10:22:21 +1300 Subject: [PATCH] MNT Run module-standardiser --- .github/workflows/dispatch-ci.yml | 16 ++++++++++++++++ .github/workflows/merge-up.yml | 4 ++-- composer.json | 4 +++- phpstan.neon.dist | 3 +++ 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/dispatch-ci.yml create mode 100644 phpstan.neon.dist diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml new file mode 100644 index 00000000..3a331652 --- /dev/null +++ b/.github/workflows/dispatch-ci.yml @@ -0,0 +1,16 @@ +name: Dispatch CI + +on: + # At 8:40 PM UTC, only on Saturday and Sunday + schedule: + - cron: '40 20 * * 6,0' + +jobs: + dispatch-ci: + name: Dispatch CI + # 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: Dispatch CI + uses: silverstripe/gha-dispatch-ci@v1 diff --git a/.github/workflows/merge-up.yml b/.github/workflows/merge-up.yml index 88f55a38..3e9dfb7c 100644 --- a/.github/workflows/merge-up.yml +++ b/.github/workflows/merge-up.yml @@ -1,9 +1,9 @@ name: Merge-up on: - # At 8:40 PM UTC, only on Saturday + # At 8:40 PM UTC, only on Wednesday schedule: - - cron: '40 20 * * 6' + - cron: '40 20 * * 3' workflow_dispatch: jobs: diff --git a/composer.json b/composer.json index d3cad270..e3b38a1c 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,9 @@ "silverstripe/cms": "Localise pages" }, "require-dev": { - "silverstripe/recipe-testing": "^3" + "silverstripe/recipe-testing": "^3", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "extra": { "branch-alias": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 00000000..beb9de3c --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - src