Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down