diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml index fcb4f4b..dbfd4b9 100644 --- a/.github/workflows/dispatch-ci.yml +++ b/.github/workflows/dispatch-ci.yml @@ -3,14 +3,14 @@ name: Dispatch CI on: # At 5:25 AM UTC, only on Tuesday and Wednesday schedule: - - cron: '25 5 * * 2,3' + - cron: '25 5 * * 2,3' jobs: dispatch-ci: - name: Dispatch CI - # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') - runs-on: ubuntu-latest - steps: - - name: Dispatch CI - uses: silverstripe/gha-dispatch-ci@v1 + name: Dispatch CI + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Dispatch CI + uses: silverstripe/gha-dispatch-ci@v1 diff --git a/composer.json b/composer.json index 2946f5e..0441f9c 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,9 @@ }, "require-dev": { "phpunit/phpunit": "^9.6", - "squizlabs/php_codesniffer": "^3.7" + "squizlabs/php_codesniffer": "^3.7", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "autoload": { "psr-4": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..d10aea0 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - code