Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ use_dns_when_possible: true
composer_version: "2"
web_environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=mariadb://db:db@db/db
- DATABASE_TEST_URL=mariadb://db:db@db/db_test
corepack_enable: false
nodejs_version: "24"
web_extra_exposed_ports:
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ permissions:

jobs:
testsuite:
name: PHPUnit (${{ matrix.database }})
runs-on: ubuntu-24.04
services:
mysql:
image: mysql:9.6
database:
image: ${{ matrix.database-image }}
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: plugins_cakephp_test
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping -h 127.0.0.1 -proot"
--health-cmd="${{ matrix.database-health-command }}"
--health-interval=10s
--health-timeout=5s
--health-retries=10
Expand All @@ -34,6 +35,14 @@ jobs:
include:
- php-version: '8.5'
dependencies: 'highest'
database: mysql
database-image: mysql:9.6
database-health-command: mysqladmin ping -h 127.0.0.1 -proot
- php-version: '8.5'
dependencies: 'highest'
database: mariadb
database-image: mariadb:10.11
database-health-command: mariadb-admin ping -h 127.0.0.1 -proot

steps:
- uses: actions/checkout@v7
Expand All @@ -58,7 +67,7 @@ jobs:
- name: Run PHPUnit
run: vendor/bin/phpunit
env:
DATABASE_TEST_URL: mysql://root:root@127.0.0.1:3306/plugins_cakephp_test?encoding=utf8mb4
DATABASE_TEST_URL: ${{ matrix.database }}://root:root@127.0.0.1:3306/plugins_cakephp_test?encoding=utf8mb4
AUTH_ID_GITHUB: someid
AUTH_SECRET_GITHUB: somesecret

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN composer install \

RUN DEBUG=false bin/cake plugin assets symlink

RUN mkdir -p logs tmp tmp/cache/models tmp/cache/persistent tmp/cache/views tmp/sessions tmp/tests /config/caddy /data/caddy \
RUN mkdir -p logs tmp tmp/cache/attributes tmp/cache/models tmp/cache/persistent tmp/cache/views tmp/sessions tmp/tests /config/caddy /data/caddy \
&& chown -R www-data:www-data logs tmp /config/caddy /data/caddy \
&& chmod -R 775 logs tmp

Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: frankenphp run --config /etc/frankenphp/Caddyfile --adapter caddyfile
release: sh -c 'bin/cake migrations migrate --no-lock -p Tags && bin/cake migrations migrate --no-lock && bin/cake migrations migrate --no-lock -p ADmad/SocialAuth && bin/cake schema_cache clear'
release: sh -c 'bin/cake cache clear catalogue && bin/cake cache clear _cake_model_ && bin/cake migrations migrate --no-lock -p Tags && bin/cake migrations migrate --no-lock && bin/cake migrations migrate --no-lock -p ADmad/SocialAuth && bin/cake schema_cache clear && bin/cake cache clear _cake_attributes_'
32 changes: 17 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
"homepage": "https://cakephp.org",
"require": {
"php": "^8.5",
"admad/cakephp-social-auth": "^2.2",
"cakephp/authentication": "^4.0",
"cakephp/authorization": "^3.0",
"cakephp/cakephp": "5.4.*",
"cakephp/migrations": "^5.0.0",
"admad/cakephp-social-auth": "dev-cake6",
"cakephp/authentication": "^5.0@dev",
"cakephp/authorization": "^4.0@dev",
"cakephp/cakephp": "^6.0@dev",
"cakephp/migrations": "dev-fix/6.x-php85-ci",
"cakephp/plugin-installer": "^2.0",
"dereuromark/cakephp-tags": "^3.0",
"friendsofcake/search": "^7.5",
"josbeir/cakephp-interact": "^0.2.1",
"josbeir/cakephp-vite": "^0.1.4",
"dereuromark/cakephp-tags": "dev-cake6",
"friendsofcake/search": "dev-cake6",
"josbeir/cakephp-interact": "dev-cake6",
"josbeir/cakephp-vite": "dev-cake6",
"knplabs/packagist-api": "^3.0",
"league/commonmark": "^2.7",
"mobiledetect/mobiledetectlib": "^4.8.03"
},
"require-dev": {
"cakedc/cakephp-phpstan": "^4.0",
"cakephp/bake": "^3.0.0",
"cakephp/cakephp-codesniffer": "^5.0",
"cakephp/debug_kit": "^5.0.0",
"dereuromark/cakephp-ide-helper": "^2.16.8",
"cakedc/cakephp-phpstan": "dev-5.next-cake6",
"cakephp/bake": "^4.0@dev",
"cakephp/cakephp-codesniffer": "^6.0@dev",
"cakephp/debug_kit": "^6.0@dev",
"dereuromark/cakephp-ide-helper": "dev-cake6",
"josegonzalez/dotenv": "^4.0",
"phpunit/phpunit": "^13.2"
},
Expand Down Expand Up @@ -74,5 +74,7 @@
"rector-setup": "cp composer.json composer.backup && composer require --dev rector/rector:\"~2.8.3\" && mv composer.backup composer.json",
"rector-check": "vendor/bin/rector process --dry-run",
"rector-fix": "vendor/bin/rector process"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
Loading
Loading