From 13b4a39586399994730f802c5dc22ca05fc589cf Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 16 May 2024 10:19:29 +1200 Subject: [PATCH] MNT Run module-standardiser --- .github/workflows/dispatch-ci.yml | 9 +++++++-- .github/workflows/keepalive.yml | 10 +++++++--- LICENSE.md => LICENSE | 2 +- composer.json | 6 ++++-- phpstan.neon.dist | 3 +++ 5 files changed, 22 insertions(+), 8 deletions(-) rename LICENSE.md => LICENSE (97%) create mode 100644 phpstan.neon.dist diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml index 0acb78d..4c39dac 100644 --- a/.github/workflows/dispatch-ci.yml +++ b/.github/workflows/dispatch-ci.yml @@ -1,9 +1,11 @@ name: Dispatch CI on: - # At 3:00 PM and 4:00 PM + # At 8:40 PM UTC, only on Sunday and Monday schedule: - - cron: '0 15,16 * * *' + - cron: '40 20 * * 0,1' + +permissions: {} jobs: dispatch-ci: @@ -11,6 +13,9 @@ jobs: # Only run cron on the silverstripe account if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest + permissions: + contents: read + actions: write steps: - name: Dispatch CI uses: silverstripe/gha-dispatch-ci@v1 diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index a228f13..206df49 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -1,10 +1,12 @@ name: Keepalive on: - workflow_dispatch: - # The 1st of every month at 3:50pm UTC + # At 8:40 PM UTC, on day 1 of the month schedule: - - cron: '50 15 1 * *' + - cron: '40 20 1 * *' + workflow_dispatch: + +permissions: {} jobs: keepalive: @@ -12,6 +14,8 @@ jobs: # Only run cron on the silverstripe account if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest + permissions: + actions: write steps: - name: Keepalive uses: silverstripe/gha-keepalive@v1 diff --git a/LICENSE.md b/LICENSE similarity index 97% rename from LICENSE.md rename to LICENSE index 4fbe7ee..c9ba148 100644 --- a/LICENSE.md +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2018, SilverStripe Ltd. +Copyright (c) 2018, Silverstripe Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/composer.json b/composer.json index dd6f042..58bb9f0 100644 --- a/composer.json +++ b/composer.json @@ -47,7 +47,9 @@ "silverstripe/frameworktest": "^1", "silverstripe/graphql-devtools": "1.x-dev", "silverstripe/recipe-testing": "^3", - "mikey179/vfsstream": "^1.6" + "mikey179/vfsstream": "^1.6", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "extra": { "project-files": [ @@ -68,4 +70,4 @@ }, "prefer-stable": true, "minimum-stability": "dev" -} \ No newline at end of file +} diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..299c86b --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - app/src