diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d729021..d8af830 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ 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 with: # behat.yml is only a sample file diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index c53ba6e..6a783b1 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/README.md b/README.md index 6da07ed..e7aaa5b 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,23 @@ -## SilverStripe Testing Recipe +## Silverstripe Testing Recipe -Standard testing components for behat, phpunit, and code style testing for the SilverStripe Framework +[![CI](https://github.com/silverstripe/recipe-testing/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/recipe-testing/actions/workflows/ci.yml) + +Standard testing components for behat, phpunit, and code style testing for the Silverstripe Framework and CMS ([http://silverstripe.org](http://silverstripe.org)). This includes the components: * [phpunit](https://github.com/sebastianbergmann/phpunit): PHP Unit Testing framework. * [php-codesniffer](https://github.com/squizlabs/PHP_CodeSniffer): PHP coding standards validator. - * [behat-extension](https://github.com/silverstripe/silverstripe-behat-extension): SilverStripe behat testing + * [behat-extension](https://github.com/silverstripe/silverstripe-behat-extension): Silverstripe behat testing framework extension. - * [silverstripe server](https://github.com/silverstripe/silverstripe-serve): SilverStripe basic server built + * [silverstripe server](https://github.com/silverstripe/silverstripe-serve): Silverstripe basic server built on PHP bundled dev server. * [selenium](https://github.com/sveneisenschmidt/selenium-server-standalone): Selenium browser automation framework. All bootstrapping files, including PHPCS style config, are included. See the [recipe plugin](https://github.com/silverstripe/recipe-plugin) page for instructions on how -SilverStripe recipes work. +Silverstripe recipes work. **Note:** If you are not using Behat for end-to-end testing on your module, it is recommended that you install PHPUnit and CodeSniffer directly. diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3cafe64..df3a1b3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ +