2022-07-18 00:14:54 +02:00
|
|
|
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
|
2022-07-31 23:59:21 +02:00
|
|
|
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
2022-07-18 00:14:54 +02:00
|
|
|
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
|
2022-12-20 22:11:27 +01:00
|
|
|
# require the following in ci.yml rather than composer.json require-dev specifically for installer because unlike
|
|
|
|
# regular modules, require-dev will get installed to projects during `composer create-project silverstripe/installer`
|
2023-02-02 04:39:14 +01:00
|
|
|
composer_require_extra: silverstripe/recipe-testing:^3 silverstripe/frameworktest:^1 mikey179/vfsstream:^1.6.10
|
2022-07-18 00:14:54 +02:00
|
|
|
extra_jobs: |
|
|
|
|
- endtoend: true
|
|
|
|
endtoend_suite: admin
|
2022-07-22 02:01:06 +02:00
|
|
|
endtoend_config: vendor/silverstripe/admin/behat.yml
|
2022-07-18 00:14:54 +02:00
|
|
|
- endtoend: true
|
|
|
|
endtoend_suite: asset-admin
|
2022-07-22 02:01:06 +02:00
|
|
|
endtoend_config: vendor/silverstripe/asset-admin/behat.yml
|
2022-07-18 00:14:54 +02:00
|
|
|
- endtoend: true
|
|
|
|
endtoend_suite: cms
|
2022-07-22 02:01:06 +02:00
|
|
|
endtoend_config: vendor/silverstripe/cms/behat.yml
|