From 57d5048d580622c7d2f40c4f0e4967968e5ff30d Mon Sep 17 00:00:00 2001 From: Derek Stephen McLean Date: Sun, 31 Mar 2024 22:00:03 +0200 Subject: [PATCH] update codeception and supported php --- .github/workflows/master.yml | 11 ++++++----- .scrutinizer.yml | 14 +++++++++----- codeception.yml | 16 ++++++++-------- composer.json | 6 +++--- src/Image.php | 2 ++ src/Image/Strategy/GifStrategy.php | 2 ++ .../Strategy/ImageTypeStrategyInterface.php | 2 ++ src/Image/Strategy/JpegStrategy.php | 2 ++ src/Image/Strategy/PngStrategy.php | 2 ++ src/Image/Strategy/TransparentStrategy.php | 10 ++++++---- src/Image/Strategy/WebPStrategy.php | 8 +++++--- 11 files changed, 47 insertions(+), 28 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 008c654..bee1ee6 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -11,16 +11,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: - - 8.0 - - 8.1 - - 8.2 - - 8.3 + php: [ '8.2', '8.3' ] steps: - uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + - name: Validate composer.json and composer.lock run: composer validate --strict diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 1e5d52a..1368e64 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,9 +1,13 @@ tools: external_code_coverage: true -checks: - php: - code_rating: true - duplication: true +build: + nodes: + analysis: + tests: + override: + - php-scrutinizer-run + environment: + php: 8.2.14 filter: paths: - - src/* \ No newline at end of file + - src/* diff --git a/codeception.yml b/codeception.yml index e534b11..b0c14ab 100644 --- a/codeception.yml +++ b/codeception.yml @@ -1,14 +1,14 @@ +actor_suffix: Tester paths: tests: tests output: tests/_output data: tests/_data - support: tests/_support - envs: tests/_envs -actor_suffix: Tester -extensions: - enabled: - - Codeception\Extension\RunFailed + helpers: tests/_support +settings: + colors: true + memory_limit: 1024M coverage: enabled: true - include: - - src/* \ No newline at end of file + whitelist: + include: + - src/*.php diff --git a/composer.json b/composer.json index 291788c..5399057 100644 --- a/composer.json +++ b/composer.json @@ -9,12 +9,12 @@ } ], "require": { - "php": ">=8.0", + "php": "^8.2", "ext-gd": "*" }, "require-dev": { - "codeception/codeception": "*", - "codeception/module-asserts": "^1.1" + "codeception/codeception": "5.1", + "codeception/module-asserts": "^3.0" }, "autoload": { diff --git a/src/Image.php b/src/Image.php index ff50deb..947929a 100644 --- a/src/Image.php +++ b/src/Image.php @@ -1,5 +1,7 @@