diff --git a/.github/workflows/test_pull_request.yml b/.github/workflows/test_pull_request.yml index b5cfebc..c599ae0 100644 --- a/.github/workflows/test_pull_request.yml +++ b/.github/workflows/test_pull_request.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['8.3', '8.4', '8.5'] + php: ['8.3', '8.4', '8.5', '8.6'] steps: - name: Set up PHP @@ -19,12 +19,12 @@ jobs: tools: composer:v2 - name: Set up Node - uses: actions/setup-node@v6 + uses: actions/setup-node@v7 with: - node-version: '24.x' + node-version: '26.x' - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: fetch-depth: 0 @@ -77,12 +77,12 @@ jobs: tools: composer:v2 - name: Set up Node - uses: actions/setup-node@v6 + uses: actions/setup-node@v7 with: - node-version: '24.x' + node-version: '26.x' - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: fetch-depth: 0 diff --git a/PHP_VERSIONS b/PHP_VERSIONS index 1bb66be..ec3b511 100644 --- a/PHP_VERSIONS +++ b/PHP_VERSIONS @@ -1,3 +1,4 @@ 8.3 8.4 8.5 +8.6 diff --git a/bin/TestAndLint.sh b/bin/TestAndLint.sh index 0b6dff2..bc66146 100644 --- a/bin/TestAndLint.sh +++ b/bin/TestAndLint.sh @@ -20,6 +20,13 @@ if [ $? -ne 0 ]; then fi test_and_lint() { + echo "===========================================================" + echo "[PHP $1][phpenv global $1]" + phpenv local $1 + if [ $? -ne 0 ]; then + echo "Failed to switch version to $1. skipped." + return 1 + fi echo "-----------------------------------------------------------" echo "[PHP $1][php -v]" php -v diff --git a/composer.json b/composer.json index d0eb2d7..004adb7 100644 --- a/composer.json +++ b/composer.json @@ -17,16 +17,16 @@ "minimum-stability": "stable", "require": { "php": ">=8.3", - "intervention/image": "^4.0", - "macocci7/php-frequency-table": "^1.4", + "intervention/image": "^4.4", + "macocci7/php-frequency-table": "^2.1", "macocci7/php-csv": "^1.1", - "macocci7/php-combination": "^1.1", + "macocci7/php-combination": "^2.1", "nette/neon": "^3.4" }, "require-dev": { "squizlabs/php_codesniffer": "^4.0", "phpunit/phpunit": "^12.5", - "phpstan/phpstan": "^2.1", + "phpstan/phpstan": "^2.3", "php-parallel-lint/php-parallel-lint": "^1.4" } }