diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06d4e45..be82c3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,7 @@ jobs: - name: Perform PHPUnit Tests env: SS_DATABASE_PORT: ${{ job.services.mysql.ports['3306'] }} - run: vendor/bin/phpunit --colors=always --printer UndefinedOffset\\SortableGridField\\Tests\\Bootstrap\\GitHubActionsAnnotatorPrinter + run: vendor/bin/phpunit --colors=always --printer UndefinedOffset\\SortableGridField\\Tests\\PHPUnit\\Bootstrap\\GitHubActionsAnnotatorPrinter silverstripe_410_php80: name: "Silverstripe 4.10 | PHP 8.0" @@ -167,7 +167,7 @@ jobs: - name: Perform PHPUnit Tests env: SS_DATABASE_PORT: ${{ job.services.mysql.ports['3306'] }} - run: vendor/bin/phpunit --colors=always --printer UndefinedOffset\\SortableGridField\\Tests\\Bootstrap\\GitHubActionsAnnotatorPrinter + run: vendor/bin/phpunit --colors=always --printer UndefinedOffset\\SortableGridField\\Tests\\PHPUnit\\Bootstrap\\GitHubActionsAnnotatorPrinter silverstripe_49_php74: name: "Silverstripe 4.9 | PHP 7.4" @@ -244,7 +244,7 @@ jobs: - name: Perform PHPUnit Tests env: SS_DATABASE_PORT: ${{ job.services.mysql.ports['3306'] }} - run: vendor/bin/phpunit --colors=always --printer UndefinedOffset\\SortableGridField\\Tests\\Bootstrap\\GitHubActionsAnnotatorPrinter + run: vendor/bin/phpunit --colors=always --printer UndefinedOffset\\SortableGridField\\Tests\\PHPUnit\\Bootstrap\\GitHubActionsAnnotatorPrinter phpcs: name: "PHP_CodeSniffer" diff --git a/README.md b/README.md index ee25ced..f6d87c9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ SortableGridField ================= -[![Build Status](https://travis-ci.org/UndefinedOffset/SortableGridField.png)](https://travis-ci.org/UndefinedOffset/SortableGridField) +[![CI](https://github.com/UndefinedOffset/SortableGridField/actions/workflows/ci.yml/badge.svg)](https://github.com/UndefinedOffset/SortableGridField/actions/workflows/ci.yml) Adds drag and drop functionality to SilverStripe 4's GridField diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..8934203 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,49 @@ + + + CodeSniffer ruleset for SilverStripe coding conventions. + + + + + + + + + + + + + + + + + + + + + + + + + + + warning + + + + + + + + + + + + + + + ./src + ./tests + ./_config.php + + diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 728ef73..b944f84 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,27 @@ - - - tests/ - + + + + + tests/PHPUnit + + + + + + sanitychecks + + + + + + src/ + + + tests/ + + + + + + diff --git a/tests/Bootstrap/GitHubActionsAnnotatorPrinter.php b/tests/PHPUnit/Bootstrap/GitHubActionsAnnotatorPrinter.php similarity index 97% rename from tests/Bootstrap/GitHubActionsAnnotatorPrinter.php rename to tests/PHPUnit/Bootstrap/GitHubActionsAnnotatorPrinter.php index 3d26291..b359a12 100644 --- a/tests/Bootstrap/GitHubActionsAnnotatorPrinter.php +++ b/tests/PHPUnit/Bootstrap/GitHubActionsAnnotatorPrinter.php @@ -1,5 +1,5 @@