This commit is contained in:
Maxime Rainville 2023-02-17 07:14:40 +00:00 committed by GitHub
commit f45629eb34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 2 deletions

View File

@ -13,4 +13,14 @@ jobs:
name: CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
uses: maxime-rainville/gha-ci/.github/workflows/ci.yml@1
with:
phpunit: false
preserve_vendor_test: true
extra_jobs: |
- php: 8.1
db: sqlite3
phpunit: true
- php: 8.1
db: mssql
phpunit: true

View File

@ -15,7 +15,8 @@
],
"require": {
"silverstripe/framework": "~4.0",
"silverstripe/vendor-plugin": "^1.0"
"silverstripe/vendor-plugin": "^1.0",
"phpunit/phpunit": "^9.5"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3"

8
phpunit.xml.dist Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="Default">
<directory>vendor/silverstripe/framework/tests/php</directory>
</testsuite>
</testsuites>
</phpunit>