@@ -38,6 +38,7 @@ jobs:
|
||||
database.tests.DBDriver: MySQLi
|
||||
database.tests.DBPrefix: ''
|
||||
database.tests.port: 3306
|
||||
JWT_SECRET: test-secret-for-ci
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -48,7 +49,7 @@ jobs:
|
||||
with:
|
||||
php-version: '8.2'
|
||||
extensions: dom, gd, intl, mbstring, mysqli, zip
|
||||
coverage: none
|
||||
coverage: xdebug
|
||||
|
||||
- name: Validate Composer config
|
||||
run: composer validate --no-check-publish --strict
|
||||
@@ -56,5 +57,26 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: composer install --no-interaction --prefer-dist --no-progress
|
||||
|
||||
- name: Prepare writable directories
|
||||
run: |
|
||||
mkdir -p \
|
||||
writable/cache/testing \
|
||||
writable/logs \
|
||||
writable/session \
|
||||
writable/uploads \
|
||||
writable/debugbar
|
||||
chown -R "$(id -u):$(id -g)" writable || true
|
||||
chmod -R u+rwX,g+rwX writable
|
||||
|
||||
- name: Verify writable cache
|
||||
run: |
|
||||
test -d writable/cache/testing
|
||||
test -w writable/cache/testing
|
||||
touch writable/cache/testing/.ci-write-test
|
||||
rm writable/cache/testing/.ci-write-test
|
||||
|
||||
- name: Run database migrations
|
||||
run: php spark migrate --all --no-interaction
|
||||
|
||||
- name: Run tests
|
||||
run: composer test
|
||||
|
||||
Reference in New Issue
Block a user