Merge branch '0.x' into prod
Some checks failed
CI / testsuite (pgsql, 8.4, ) (push) Successful in 8m21s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 14m36s
CI / testsuite (mysql, 8.2, ) (push) Successful in 14m37s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 4m51s
CI / testsuite (mysql, 8.4, ) (push) Successful in 20m6s
CI / Coding Standard & Static Analysis (push) Failing after 3m30s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 14m24s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 20m24s
Some checks failed
CI / testsuite (pgsql, 8.4, ) (push) Successful in 8m21s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 14m36s
CI / testsuite (mysql, 8.2, ) (push) Successful in 14m37s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 4m51s
CI / testsuite (mysql, 8.4, ) (push) Successful in 20m6s
CI / Coding Standard & Static Analysis (push) Failing after 3m30s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 14m24s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 20m24s
This commit is contained in:
@@ -101,7 +101,7 @@ jobs:
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.1'
|
||||
php-version: '8.2'
|
||||
extensions: mbstring, intl, sqlite, bcmath
|
||||
coverage: none
|
||||
|
||||
@@ -127,9 +127,19 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Run phpstan
|
||||
run: vendor/bin/phpstan analyse --error-format=github
|
||||
run: vendor/bin/phpstan analyse src tests --error-format=github > phpstan.errors
|
||||
|
||||
- name: Run phpcs
|
||||
run: composer cs-check
|
||||
run: composer cs-check > phpcs.errors
|
||||
|
||||
- uses: https://github.com/christopherHX/gitea-upload-artifact@v4
|
||||
with:
|
||||
name: phpstan
|
||||
path: phpstan.errors
|
||||
|
||||
- uses: https://github.com/christopherHX/gitea-upload-artifact@v4
|
||||
with:
|
||||
name: phpcs
|
||||
path: phpcs.errors
|
||||
|
||||
|
||||
|
||||
@@ -4,15 +4,16 @@
|
||||
"type": "cakephp-plugin",
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": ">=8.1",
|
||||
"cakephp/cakephp": "^5.0.1",
|
||||
"php": ">=8.2",
|
||||
"cakephp/cakephp": "^5.1",
|
||||
"ext-bcmath": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^10.1",
|
||||
"phpunit/phpunit": "^10.3",
|
||||
"php-collective/decimal-object": "^1.3",
|
||||
"cakephp/migrations": "^4.0.0",
|
||||
"phpstan/phpstan": "^2.1"
|
||||
"phpstan/phpstan": "^2.1",
|
||||
"dereuromark/composer-prefer-lowest": "^0.1.10"
|
||||
},
|
||||
"suggest": {
|
||||
"dereuromark/cakephp-geo": "^3.2"
|
||||
|
||||
8
phpstan.neon
Normal file
8
phpstan.neon
Normal file
@@ -0,0 +1,8 @@
|
||||
includes:
|
||||
- vendor/cakedc/cakephp-phpstan/extension.neon
|
||||
parameters:
|
||||
level: 5
|
||||
paths:
|
||||
- src
|
||||
treatPhpDocTypesAsCertain: false
|
||||
|
||||
15
psalm.xml
Normal file
15
psalm.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
errorLevel="2"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="src" />
|
||||
<ignoreFiles>
|
||||
<directory name="vendor" />
|
||||
</ignoreFiles>
|
||||
</projectFiles>
|
||||
</psalm>
|
||||
@@ -9,7 +9,6 @@ use Cake\Database\Connection;
|
||||
use Cake\Datasource\ConnectionManager;
|
||||
use Cake\TestSuite\Fixture\SchemaLoader;
|
||||
use CakeAddresses\CakeAddressesPlugin;
|
||||
use CakeProducts\CakeProductsPlugin;
|
||||
use Migrations\TestSuite\Migrator;
|
||||
use TestApp\Controller\AppController;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user