2022-07-15 12:23:59 +12:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
# Every Thursday at 12:20pm UTC
|
|
|
|
schedule:
|
|
|
|
- cron: '20 12 * * 4'
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
name: CI
|
|
|
|
# Only run cron on the silverstripe account
|
2022-08-02 17:55:18 +12:00
|
|
|
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
2023-03-03 10:46:09 +13:00
|
|
|
uses: "silverstripe/gha-ci/.github/workflows/ci.yml@v1"
|
2022-07-15 12:23:59 +12:00
|
|
|
with:
|
|
|
|
# set phpunit to false to prevent automatic generation of mysql phpunit jobs
|
|
|
|
phpunit: false
|
2023-03-03 10:46:09 +13:00
|
|
|
preserve_vendor_tests: true
|
2022-07-15 12:23:59 +12:00
|
|
|
extra_jobs: |
|
2022-08-18 11:01:28 +12:00
|
|
|
- php: 8.1
|
2022-07-15 12:23:59 +12:00
|
|
|
db: pgsql
|
|
|
|
phpunit: true
|
|
|
|
composer_args: --prefer-lowest
|
2023-03-03 10:46:09 +13:00
|
|
|
phpunit_suite: all
|
2022-08-18 11:01:28 +12:00
|
|
|
- php: 8.1
|
2022-07-15 12:23:59 +12:00
|
|
|
db: pgsql
|
|
|
|
phpunit: true
|
2023-03-03 10:46:09 +13:00
|
|
|
phpunit_suite: all
|
|
|
|
- php: 8.2
|
2022-07-15 12:23:59 +12:00
|
|
|
db: pgsql
|
|
|
|
phpunit: true
|
2023-03-03 10:46:09 +13:00
|
|
|
phpunit_suite: all
|
|
|
|
|
|
|
|
|