Skip to content

Commit 4ce3b4d

Browse files
authored
Merge pull request #35 from samsonasik/samsonasik-patch-1
Allow webmozart/assert version ^2.1
2 parents 4d1dc4c + 818bae6 commit 4ce3b4d

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/ci_build.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
jobs:
1010
build:
11-
name: PHP ${{ matrix.php-versions }}
11+
name: PHP ${{ matrix.php-versions }} (${{ matrix.deps }})
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-versions: ['8.2', '8.3', '8.4']
16+
php-versions: ['8.2', '8.3', '8.4', '8.5']
17+
deps: ['lowest', 'latest']
1718
steps:
1819
- name: Setup PHP Action
1920
uses: shivammathur/setup-php@v2
@@ -25,8 +26,12 @@ jobs:
2526
uses: actions/checkout@v2
2627
- name: "Validate composer.json and composer.lock"
2728
run: "composer validate"
28-
- name: "Install dependencies"
29-
run: "composer install"
29+
- name: "Install dependencies (latest)"
30+
if: matrix.deps == 'latest'
31+
run: "composer install --no-interaction --no-progress --prefer-dist"
32+
- name: "Install dependencies (lowest)"
33+
if: matrix.deps == 'lowest'
34+
run: "composer update --no-interaction --no-progress --prefer-dist --prefer-lowest --prefer-stable"
3035
- name: "CS Check"
3136
run: "composer cs-check"
3237
- name: "Code analyze"
@@ -36,12 +41,12 @@ jobs:
3641
- name: "Run test suite"
3742
run: "composer test"
3843
- name: Upload coverage to Codecov
39-
if: github.event.pull_request.head.repo.full_name == 'samsonasik/ArrayLookup'
40-
uses: codecov/codecov-action@v1
44+
if: github.event.pull_request.head.repo.full_name == 'samsonasik/ArrayLookup' && matrix.deps == 'latest' && matrix.php-versions == '8.4'
45+
uses: codecov/codecov-action@v4
4146
with:
4247
token: ${{ secrets.CODECOV_TOKEN }}
43-
file: ./build/logs/clover.xml
48+
files: ./build/logs/clover.xml
4449
flags: tests
4550
name: codecov-umbrella
46-
yml: ./codecov.yml
51+
codecov_yml_path: ./codecov.yml
4752
fail_ci_if_error: true

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"require": {
2525
"php": "^8.2",
26-
"webmozart/assert": "^1.11"
26+
"webmozart/assert": "^1.11 || ^2.1"
2727
},
2828
"require-dev": {
2929
"laminas/laminas-coding-standard": "^3.0",

0 commit comments

Comments
 (0)