Skip to content
Merged
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
32 changes: 17 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

env:
HIGHEST_PHP_VERSION: "8.4"
HIGHEST_STABLE_PHP_VERSION: "8.5"

jobs:
phpstan:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.HIGHEST_PHP_VERSION }}
php-version: ${{ env.HIGHEST_STABLE_PHP_VERSION }}

- name: Install composer dependencies
uses: ramsey/composer-install@v3
Expand All @@ -29,7 +29,7 @@ jobs:

coding-standard:
name: Coding Standard
uses: brick/coding-standard/.github/workflows/coding-standard.yml@v4
uses: brick/coding-standard/.github/workflows/coding-standard.yml@v6
with:
php-version: "8.2"
working-directory: "tools/ecs"
Expand All @@ -45,18 +45,20 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"
- "8.6"
pdo-emulate-prepares:
- "OFF"
pdo-errmode:
- "EXCEPTION"
include:
- php-version: "8.4"
- php-version: "8.5"
pdo-emulate-prepares: "ON"
pdo-errmode: "EXCEPTION"
- php-version: "8.4"
- php-version: "8.5"
pdo-emulate-prepares: "OFF"
pdo-errmode: "SILENT"
- php-version: "8.4"
- php-version: "8.5"
pdo-emulate-prepares: "OFF"
pdo-errmode: "WARNING"

Expand Down Expand Up @@ -93,7 +95,7 @@ jobs:
MYSQL_PASSWORD: password
PDO_EMULATE_PREPARES: ${{ matrix.pdo-emulate-prepares }}
PDO_ERRMODE: ${{ matrix.pdo-errmode }}
if: ${{ matrix.php-version != env.HIGHEST_PHP_VERSION }}
if: ${{ matrix.php-version != env.HIGHEST_STABLE_PHP_VERSION }}

- name: Run PHPUnit with coverage
run: vendor/bin/phpunit --coverage-php coverage.php
Expand All @@ -104,17 +106,17 @@ jobs:
MYSQL_PASSWORD: password
PDO_EMULATE_PREPARES: ${{ matrix.pdo-emulate-prepares }}
PDO_ERRMODE: ${{ matrix.pdo-errmode }}
if: ${{ matrix.php-version == env.HIGHEST_PHP_VERSION }}
if: ${{ matrix.php-version == env.HIGHEST_STABLE_PHP_VERSION }}

- name: Merge worker coverage
run: php tools/merge-coverage.php coverage.php clover.xml && rm coverage.php
if: ${{ matrix.php-version == env.HIGHEST_PHP_VERSION }}
if: ${{ matrix.php-version == env.HIGHEST_STABLE_PHP_VERSION }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.php-version == env.HIGHEST_PHP_VERSION }}
if: ${{ matrix.php-version == env.HIGHEST_STABLE_PHP_VERSION }}

phpunit-mysql-doctrine:
name: PHPUnit MySQL / Doctrine
Expand All @@ -126,7 +128,7 @@ jobs:
deps:
- "highest"
php-version:
- "8.4"
- "8.5"
include:
- php-version: "8.2"
deps: "lowest"
Expand Down Expand Up @@ -181,7 +183,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- "8.4"
- "8.5"

services:
mariadb:
Expand Down Expand Up @@ -231,7 +233,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- "8.4"
- "8.5"

services:
mariadb:
Expand Down Expand Up @@ -280,7 +282,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.4"
- "8.5"

services:
postgres:
Expand Down Expand Up @@ -328,7 +330,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.4"
- "8.5"

services:
postgres:
Expand Down
1 change: 0 additions & 1 deletion tests/PostgresHasherTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php


declare(strict_types=1);

namespace Brick\Lock\Tests;
Expand Down
2 changes: 1 addition & 1 deletion tools/ecs/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"brick/coding-standard": "v4"
"brick/coding-standard": "v6"
},
"config": {
"allow-plugins": {
Expand Down
Loading