From 38b7282428df56c028094f70a9180231d4baaedf Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 27 Dec 2022 18:40:35 +0530 Subject: [PATCH] Update CI config --- .github/workflows/ci.yml | 6 ++++-- README.md | 2 +- composer.json | 8 +++++++- phpstan.neon | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7db0cd..857bdf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - php-version: ['7.4', '8.0', '8.1'] + php-version: ['7.4', '8.0', '8.1', '8.2'] db-type: [mysql, pgsql] prefer-lowest: [''] include: @@ -84,7 +84,9 @@ jobs: php-version: '7.4' extensions: mbstring, intl coverage: none - tools: psalm:4.4, phpstan:1.0 + tools: vimeo/psalm:4.4, phpstan:1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Composer Install run: composer require cakephp/cakephp-codesniffer:^4.2 diff --git a/README.md b/README.md index efdb9a7..ffdc04f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Sequence plugin to maintain ordered list of records -[![Build Status](https://img.shields.io/github/workflow/status/ADmad/cakephp-sequence/CI/master?style=flat-square)](https://github.com/ADmad/cakephp-sequence/actions/workflows/ci.yml) +[![Build Status](https://img.shields.io/github/actions/workflow/status/ADmad/cakephp-sequence/ci.yml?branch=master&style=flat-square)](https://github.com/ADmad/cakephp-sequence/actions/workflows/ci.yml) [![Coverage](https://img.shields.io/codecov/c/github/ADmad/cakephp-sequence.svg?style=flat-square)](https://codecov.io/github/ADmad/cakephp-sequence) [![Total Downloads](https://img.shields.io/packagist/dt/admad/cakephp-sequence.svg?style=flat-square)](https://packagist.org/packages/admad/cakephp-sequence) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.txt) diff --git a/composer.json b/composer.json index 64c0569..23587ff 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ }, "require-dev": { "cakephp/cakephp": "^4.0", - "phpunit/phpunit": "~8.5.0" + "phpunit/phpunit": "~8.5.0 || ^9.5" }, "autoload": { "psr-4": { @@ -22,5 +22,11 @@ "Cake\\Test\\": "./vendor/cakephp/cakephp/tests", "TestApp\\": "tests/test_app/src" } + }, + "config": { + "sort-packages": true, + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } diff --git a/phpstan.neon b/phpstan.neon index feefb61..ab4ce6e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,5 +2,6 @@ parameters: level: 8 checkMissingIterableValueType: false treatPhpDocTypesAsCertain: false + checkGenericClassInNonGenericObjectType: false paths: - src/