diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f79777..b56f6dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,5 +12,5 @@ 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 diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index ebf9716..4cf5fbb 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/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 4625fbf..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,15 +0,0 @@ -inherit: true - -build: - nodes: - analysis: - tests: - override: [php-scrutinizer-run] - -checks: - php: - code_rating: true - duplication: true - -filter: - paths: [code/*, tests/*] diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b296509..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -version: ~> 1.0 - -# Use a manual matrix as composer.json requires "silverstripe/cms": "^4.6", -# This should be changed to "standard-jobs-range-npm" as soon as the lowest recipe -# version in the travis shared jobs matrix is 4.6 -import: - - silverstripe/silverstripe-travis-shared:config/provision/standard.yml - -jobs: - include: - - php: 7.4 - env: - - DB=MYSQL - - REQUIRE_INSTALLER="4.x-dev" - - NPM_TEST=1 - - php: 7.4 - env: - - DB=PGSQL - - REQUIRE_INSTALLER="4.x-dev" - - PHPUNIT_TEST=1 - - PHPCS_TEST=1 - - php: 7.4 - env: - - DB=MYSQL - - REQUIRE_INSTALLER="4.x-dev" - - PHPUNIT_COVERAGE_TEST=1 - - php: 8.0 - env: - - DB=MYSQL - - REQUIRE_INSTALLER="4.x-dev" - - BEHAT_TEST=1 - - BEHAT_SUITE="userforms" - - php: 8.1.0 - env: - - DB=MYSQL - - REQUIRE_INSTALLER="4.x-dev" - - PHPUNIT_TEST=1 - allow_failures: - - php: 8.1.0 - \ No newline at end of file diff --git a/readme.md b/README.md similarity index 81% rename from readme.md rename to README.md index 6e2f690..dbd1fb3 100644 --- a/readme.md +++ b/README.md @@ -1,15 +1,11 @@ # UserForms +[![CI](https://github.com/silverstripe/silverstripe-userforms/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-userforms/actions/workflows/ci.yml) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) + UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code. -[![CI](https://github.com/silverstripe/silverstripe-userforms/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-userforms/actions/workflows/ci.yml) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-userforms/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-userforms/?branch=master) -[![codecov](https://codecov.io/gh/silverstripe/silverstripe-userforms/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-userforms) -[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) -[![Version](http://img.shields.io/packagist/v/silverstripe/userforms.svg?style=flat)](https://packagist.org/packages/silverstripe/silverstripe-userforms) -[![License](http://img.shields.io/packagist/l/silverstripe/userforms.svg?style=flat)](LICENSE.md) - ## Requirements See the "require" section of [composer.json](https://github.com/silverstripe/silverstripe-userforms/blob/master/composer.json) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 777d772..0e11ccb 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ +