Skip to content

Commit

Permalink
MNT Standardise modules
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 31, 2022
1 parent 44691d5 commit 8e40897
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="recipe-testing">
Expand Down

0 comments on commit 8e40897

Please sign in to comment.