From 331378c7417dd9770700c51ab2b4bbeb04554970 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Sun, 19 Apr 2026 20:39:07 +0100 Subject: [PATCH 1/3] ci: code coverage --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b2abef..e974b24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,6 +93,9 @@ jobs: - name: Upload to Codecov uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: PhpGt/Cipher phpstan: runs-on: ubuntu-latest From 9ef7a5b0a5e4fe58359208bf886687cf39a56c59 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Sun, 19 Apr 2026 20:41:21 +0100 Subject: [PATCH 2/3] ci: dynamic repo name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e974b24..1034945 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,7 +95,7 @@ jobs: uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} - slug: PhpGt/Cipher + slug: ${{ github.repository }} phpstan: runs-on: ubuntu-latest From 536118d38adbc564274aaeeb2c093d1e39d76d92 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Sun, 19 Apr 2026 20:49:55 +0100 Subject: [PATCH 3/3] ci: upgrade workflow --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1034945..5d98c7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,12 @@ name: CI -on: [push, pull_request] +on: + push: + pull_request: permissions: contents: read actions: read - id-token: none jobs: composer: @@ -15,10 +16,10 @@ jobs: php: [ 8.4, 8.5 ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Cache Composer dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: /tmp/composer-cache key: ${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} @@ -27,6 +28,7 @@ jobs: uses: php-actions/composer@v6 with: php_version: ${{ matrix.php }} + php_extensions: pcntl - name: Archive build run: mkdir /tmp/github-actions/ && tar --exclude=".git" -cvf /tmp/github-actions/build.tar ./ @@ -118,6 +120,8 @@ jobs: with: php_version: ${{ matrix.php }} path: src/ + level: 6 + memory_limit: 256M phpmd: runs-on: ubuntu-latest