diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d729021 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + # Every Sunday at 2:00pm UTC + schedule: + - cron: '0 14 * * 0' + +jobs: + ci: + name: CI + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 + with: + # behat.yml is only a sample file + endtoend: false diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml new file mode 100644 index 0000000..c53ba6e --- /dev/null +++ b/.github/workflows/keepalive.yml @@ -0,0 +1,17 @@ +name: Keepalive + +on: + workflow_dispatch: + # The 8th of every month at 2:50pm UTC + schedule: + - cron: '50 14 8 * *' + +jobs: + keepalive: + name: Keepalive + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Keepalive + uses: silverstripe/gha-keepalive@v1 diff --git a/phpcs.xml.dist b/phpcs.xml.dist deleted file mode 100644 index 1f36b0e..0000000 --- a/phpcs.xml.dist +++ /dev/null @@ -1,24 +0,0 @@ - - - Coding standard for SilverStripe 4.x - - - */vendor/* - */thirdparty/* - - - - - - - - - - - - - - - - - diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 412c6b5..4ed48bf 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,18 +1,8 @@ - - - tests - - - - sanitychecks - - - - - . - - tests/ - - - + + + + vendor/silverstripe/behat-extension/tests + vendor/silverstripe/silverstripe-serve/tests + +