From 5fdb8e7e91d4f477c2d6d5f112046068fcbd94f3 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 14 Jul 2022 13:36:54 +1200 Subject: [PATCH] MNT Use GitHub Actions CI --- .github/workflows/ci.yml | 19 +++++++++++++++++++ .github/workflows/keepalive.yml | 17 +++++++++++++++++ phpcs.xml.dist | 24 ------------------------ phpunit.xml.dist | 24 +++++++----------------- 4 files changed, 43 insertions(+), 41 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/keepalive.yml delete mode 100644 phpcs.xml.dist 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..3cafe64 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,18 +1,8 @@ - - - tests - - - - sanitychecks - - - - - . - - tests/ - - - + + + + vendor/silverstripe/behat-extension/tests + vendor/silverstripe/serve/tests + +