Skip to content
Open
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
31 changes: 31 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,38 @@
run: |
docker compose --file=docker/compose.proxy.yaml --file=docker/compose.es.yaml logs es01 es02

phpunit-lowest:
runs-on: 'ubuntu-24.04'
name: 'PHPUnit (lowest deps, PHP ${{ matrix.php }})'
timeout-minutes: 10
strategy:
matrix:
php:
- '8.1'
fail-fast: false
steps:
- name: 'Checkout'
uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php }}'
coverage: 'none'
tools: 'composer:v2'
extensions: 'curl, json, mbstring, openssl'

- name: 'Install dependencies with Composer (lowest)'
uses: 'ramsey/composer-install@v3'
with:
dependency-versions: 'lowest'
composer-options: '--prefer-dist --prefer-stable'

Comment on lines +137 to +142
- name: 'Run unit tests'
run: |
vendor/bin/phpunit --group unit

phpstan:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: 'ubuntu-24.04'
name: 'PHPStan'
timeout-minutes: 10
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Added support for "search after" based pagination [#1645](https://github.com/ruflin/Elastica/issues/1645)
* Added support for the `seq_no_primary_term` search option and the `if_seq_no` / `if_primary_term` index options to enable optimistic concurrency control [#2284](https://github.com/ruflin/Elastica/pull/2284)
### Changed
* Added a `phpunit-lowest` CI job that installs dependencies with `--prefer-lowest --prefer-stable` and runs the unit tests on PHP 8.1, ensuring that the minimum constraints declared in `composer.json` keep working.
### Deprecated
### Removed
### Fixed
Expand Down
Loading