From a8d6ffdeabb17ddfe8bd37a4f853b13f30a827d1 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 18 Jul 2022 10:14:54 +1200 Subject: [PATCH 1/2] MNT Use GitHub Actions CI --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/keepalive.yml | 17 +++++++++++++++++ README.md | 2 +- composer.json | 4 +++- 4 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/keepalive.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dcc66b6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + # Every day at 4:00pm UTC + schedule: + - cron: '0 16 * * *' + +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: + # installer contains a sample behat.yml file, though there are no behat tests to run + endtoend: false + extra_jobs: | + - endtoend: true + endtoend_suite: admin + endtoend_config: vendor/silvestripe/admin/behat.yml + - endtoend: true + endtoend_suite: asset-admin + endtoend_config: vendor/silvestripe/asset-admin/behat.yml + - endtoend: true + endtoend_suite: cms + endtoend_config: vendor/silvestripe/cms/behat.yml diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml new file mode 100644 index 0000000..4164686 --- /dev/null +++ b/.github/workflows/keepalive.yml @@ -0,0 +1,17 @@ +name: Keepalive + +on: + workflow_dispatch: + # The 8th of every month at 4:50pm UTC + schedule: + - cron: '50 16 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/README.md b/README.md index 4187aec..e56185c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Overview -[![Build Status](https://api.travis-ci.com/silverstripe/silverstripe-installer.svg?branch=4)](https://travis-ci.com/silverstripe/silverstripe-installer) +[![CI](https://github.com/silverstripe/silverstripe-installer/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-installer/actions/workflows/ci.yml) Base project folder for a SilverStripe ([http://silverstripe.org](http://silverstripe.org)) installation. Required modules are installed via [http://github.com/silverstripe/recipe-cms](http://github.com/silverstripe/recipe-cms). For information on how to change the dependencies in a recipe, please have a look at [https://github.com/silverstripe/recipe-plugin](https://github.com/silverstripe/recipe-plugin). In addition, installer includes [theme/simple](https://github.com/silverstripe-themes/silverstripe-simple) as a default theme. diff --git a/composer.json b/composer.json index c24af6d..3a8d50d 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,9 @@ "silverstripe/login-forms": "4.6.x-dev" }, "require-dev": { - "phpunit/phpunit": "^9.5" + "silverstripe/recipe-testing": "^2", + "silverstripe/frameworktest": "^0.4.2", + "mikey179/vfsstream": "^1.6.10" }, "extra": { "project-files": [ From 5b756664cce0f94fe6816decf1eb15a26d48aaa1 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 22 Jul 2022 12:01:06 +1200 Subject: [PATCH 2/2] MNT Fix typos --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcc66b6..b7a46e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,10 +20,10 @@ jobs: extra_jobs: | - endtoend: true endtoend_suite: admin - endtoend_config: vendor/silvestripe/admin/behat.yml + endtoend_config: vendor/silverstripe/admin/behat.yml - endtoend: true endtoend_suite: asset-admin - endtoend_config: vendor/silvestripe/asset-admin/behat.yml + endtoend_config: vendor/silverstripe/asset-admin/behat.yml - endtoend: true endtoend_suite: cms - endtoend_config: vendor/silvestripe/cms/behat.yml + endtoend_config: vendor/silverstripe/cms/behat.yml