From 48ebf027d9684b955e9dea9d21713a128d83324b Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 11 Jan 2026 22:17:02 +0700 Subject: [PATCH 1/2] Allow webmozart/assert version ^2.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5656c4b..13aa666 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ ], "require": { "php": "^8.2", - "webmozart/assert": "^1.11" + "webmozart/assert": "^1.11 || ^2.1" }, "require-dev": { "laminas/laminas-coding-standard": "^3.0", From 818bae669cefcb6e0d3e7cbd7bdc7c833950667e Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 11 Jan 2026 22:20:07 +0700 Subject: [PATCH 2/2] allow lowest and latest dependency on CI --- .github/workflows/ci_build.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 8036e24..0649a7d 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -8,12 +8,13 @@ on: jobs: build: - name: PHP ${{ matrix.php-versions }} + name: PHP ${{ matrix.php-versions }} (${{ matrix.deps }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: - php-versions: ['8.2', '8.3', '8.4'] + php-versions: ['8.2', '8.3', '8.4', '8.5'] + deps: ['lowest', 'latest'] steps: - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -25,8 +26,12 @@ jobs: uses: actions/checkout@v2 - name: "Validate composer.json and composer.lock" run: "composer validate" - - name: "Install dependencies" - run: "composer install" + - name: "Install dependencies (latest)" + if: matrix.deps == 'latest' + run: "composer install --no-interaction --no-progress --prefer-dist" + - name: "Install dependencies (lowest)" + if: matrix.deps == 'lowest' + run: "composer update --no-interaction --no-progress --prefer-dist --prefer-lowest --prefer-stable" - name: "CS Check" run: "composer cs-check" - name: "Code analyze" @@ -36,12 +41,12 @@ jobs: - name: "Run test suite" run: "composer test" - name: Upload coverage to Codecov - if: github.event.pull_request.head.repo.full_name == 'samsonasik/ArrayLookup' - uses: codecov/codecov-action@v1 + if: github.event.pull_request.head.repo.full_name == 'samsonasik/ArrayLookup' && matrix.deps == 'latest' && matrix.php-versions == '8.4' + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - file: ./build/logs/clover.xml + files: ./build/logs/clover.xml flags: tests name: codecov-umbrella - yml: ./codecov.yml + codecov_yml_path: ./codecov.yml fail_ci_if_error: true