From 71d87804f3750381ed7c7de8dde24f271aa0ecc9 Mon Sep 17 00:00:00 2001 From: kylekatarnls Date: Wed, 11 Mar 2026 18:46:16 +0100 Subject: [PATCH 1/4] Fix coverage job --- .github/workflows/coverage.yml | 2 -- .github/workflows/split.yml | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7d72c63..328d49d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -51,13 +51,11 @@ jobs: - name: Coverage - Qltysh uses: qltysh/qlty-action/coverage@v2 - if: matrix.coverage with: token: ${{ secrets.QLTY_COVERAGE_TOKEN }} files: clover.xml - name: Coverage - Codecov - if: matrix.coverage uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/split.yml b/.github/workflows/split.yml index 9056340..44cb197 100644 --- a/.github/workflows/split.yml +++ b/.github/workflows/split.yml @@ -32,10 +32,10 @@ jobs: if: steps.composer-cache.outputs.cache-hit != 'true' run: | test -f composer.json && mv composer.json composer.json.save -f - composer require phug/split --no-interaction + composer require "phug/split:^1.5" --no-interaction test -f composer.json.save && mv composer.json.save composer.json -f - name: Split monorepository - run: vendor/bin/split update --api=https://repo.packagist.org/p2/%s.json --git-credentials=$REPOSITORY_CREDENTIALS + run: vendor/bin/split update --git-credentials=$REPOSITORY_CREDENTIALS env: REPOSITORY_CREDENTIALS: ${{ secrets.REPOSITORY_CREDENTIALS }} From 6f26e55acbd2d3d1bd1ee1587162961e7b703e7e Mon Sep 17 00:00:00 2001 From: kylekatarnls Date: Thu, 12 Mar 2026 11:50:27 +0100 Subject: [PATCH 2/4] Use phug/split feature/packagist-v2 --- .github/workflows/split.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/split.yml b/.github/workflows/split.yml index 44cb197..ca16eba 100644 --- a/.github/workflows/split.yml +++ b/.github/workflows/split.yml @@ -32,7 +32,7 @@ jobs: if: steps.composer-cache.outputs.cache-hit != 'true' run: | test -f composer.json && mv composer.json composer.json.save -f - composer require "phug/split:^1.5" --no-interaction + composer require "phug/split:dev-feature/packagist-v2" --no-interaction test -f composer.json.save && mv composer.json.save composer.json -f - name: Split monorepository From 9451c1e1e1a99fb5d4a7f55626e0586c2e4ca003 Mon Sep 17 00:00:00 2001 From: kylekatarnls Date: Thu, 12 Mar 2026 11:52:45 +0100 Subject: [PATCH 3/4] Disable split job cache --- .github/workflows/split.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/split.yml b/.github/workflows/split.yml index ca16eba..c8d8a7b 100644 --- a/.github/workflows/split.yml +++ b/.github/workflows/split.yml @@ -19,14 +19,14 @@ jobs: php-version: 8.2 tools: composer:v2 - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v4 - with: - path: vendor - key: split-${{ hashFiles('**/composer.lock') }} - restore-keys: | - split- +# - name: Cache Composer packages +# id: composer-cache +# uses: actions/cache@v4 +# with: +# path: vendor +# key: split-${{ hashFiles('**/composer.lock') }} +# restore-keys: | +# split- - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' From 34efb18223bae51b7507b676f96ea9999a989733 Mon Sep 17 00:00:00 2001 From: kylekatarnls Date: Thu, 12 Mar 2026 12:05:33 +0100 Subject: [PATCH 4/4] Use a dedicated token for the split --- .github/workflows/split.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/split.yml b/.github/workflows/split.yml index c8d8a7b..5111b59 100644 --- a/.github/workflows/split.yml +++ b/.github/workflows/split.yml @@ -36,6 +36,6 @@ jobs: test -f composer.json.save && mv composer.json.save composer.json -f - name: Split monorepository - run: vendor/bin/split update --git-credentials=$REPOSITORY_CREDENTIALS + run: vendor/bin/split update --git-credentials=$SPLIT_REPOSITORY_CREDENTIALS env: - REPOSITORY_CREDENTIALS: ${{ secrets.REPOSITORY_CREDENTIALS }} + SPLIT_REPOSITORY_CREDENTIALS: ${{ secrets.SPLIT_REPOSITORY_CREDENTIALS }}