From 16e42b23c76baa5dcfd2534d44ec6a4a4867d122 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 5 Aug 2026 03:13:13 +0200 Subject: [PATCH 1/2] CI: switched Coveralls upload to the official action The php-coveralls phar is replaced by coverallsapp/github-action, which resolves the token and the absolute paths in the Clover report on its own, so tests/.coveralls.yml is no longer needed. Coverage is now uploaded even when tests crash under phpdbg. Being phpdbg-compatible is not a goal, but until now the failing step aborted the job before the upload ever ran. The job-level continue-on-error is gone, so genuine failures, including a rejected upload, are visible. --- .github/workflows/tests.yml | 10 +++++----- tests/.coveralls.yml | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 tests/.coveralls.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cdca0c074..f8baedae9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,6 @@ jobs: code_coverage: name: Code Coverage runs-on: ubuntu-latest - continue-on-error: true steps: - uses: actions/checkout@v6 - uses: shivammathur/setup-php@v2 @@ -44,7 +43,8 @@ jobs: - run: composer install --no-progress --prefer-dist - run: composer tester -- -p phpdbg --coverage ./coverage.xml --coverage-src ./src - - run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar - - env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: php php-coveralls.phar --verbose --config tests/.coveralls.yml + continue-on-error: true + - uses: coverallsapp/github-action@v2 + with: + file: coverage.xml + format: clover diff --git a/tests/.coveralls.yml b/tests/.coveralls.yml deleted file mode 100644 index 845038250..000000000 --- a/tests/.coveralls.yml +++ /dev/null @@ -1,4 +0,0 @@ -# for php-coveralls -service_name: github-actions -coverage_clover: coverage.xml -json_path: coverage.json From f9531ad2249d3711ee56855c271622e05af67ed5 Mon Sep 17 00:00:00 2001 From: Jenthe Noordsij Date: Tue, 22 Sep 2026 11:19:11 +0200 Subject: [PATCH 2/2] Add support for PHP 8.6 --- .github/workflows/tests.yml | 2 +- AGENTS.md | 2 +- composer.json | 2 +- readme.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f8baedae9..b0ba598ff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - php: ['8.2', '8.3', '8.4', '8.5'] + php: ['8.2', '8.3', '8.4', '8.5', '8.6'] fail-fast: false diff --git a/AGENTS.md b/AGENTS.md index f37d41698..ff0d42471 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,7 +20,7 @@ Nette Utils is a standalone PHP utility library: strings, arrays/iterables, HTML generation, images, JSON, validation, filesystem, file search, and process execution. -- **PHP Version**: 8.2 - 8.5 +- **PHP Version**: 8.2 - 8.6 - **Package**: `nette/utils` ## Essential Commands diff --git a/composer.json b/composer.json index 7014841ff..b881ec68a 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": "8.2 - 8.5" + "php": "8.2 - 8.6" }, "require-dev": { "nette/tester": "^2.5", diff --git a/readme.md b/readme.md index 8c717be42..f34633e12 100644 --- a/readme.md +++ b/readme.md @@ -41,7 +41,7 @@ The recommended way to install is via Composer: composer require nette/utils ``` -Nette Utils 4.1 is compatible with PHP 8.2 to 8.5. +Nette Utils 4.1 is compatible with PHP 8.2 to 8.6.