forked from FriendsOfSymfony/FOSElasticaBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from llupa/only-php-bump
Bump PHP
- Loading branch information
Showing
56 changed files
with
530 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: 'Continuous integration' | ||
on: ['push', 'pull_request'] | ||
jobs: | ||
phpunit: | ||
runs-on: 'ubuntu-20.04' | ||
name: 'PHPUnit (PHP ${{ matrix.php }}, ES ${{ matrix.elasticsearch }})' | ||
timeout-minutes: 10 | ||
env: | ||
SYMFONY_REQUIRE: "${{ matrix.symfony_require }}" | ||
strategy: | ||
matrix: | ||
include: | ||
- php: '8.1' | ||
elasticsearch: '6.8.23' | ||
dependencies: 'highest' | ||
symfony_require: '4.4.*' | ||
fail-fast: false | ||
steps: | ||
- name: 'Checkout' | ||
uses: 'actions/checkout@v2' | ||
|
||
- name: 'Setup PHP' | ||
uses: 'shivammathur/setup-php@v2' | ||
with: | ||
php-version: '${{ matrix.php }}' | ||
coverage: 'none' | ||
tools: 'pecl, composer:v2, flex' | ||
extensions: 'curl, json, mbstring, mongodb, openssl' | ||
|
||
- name: "Install Composer dependencies (${{ matrix.dependencies }})" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
composer-options: "--prefer-dist --prefer-stable" | ||
|
||
- name: 'Setup Elasticsearch' | ||
run: | | ||
sudo swapoff -a | ||
sudo sysctl -w vm.swappiness=1 | ||
sudo sysctl -w fs.file-max=262144 | ||
sudo sysctl -w vm.max_map_count=262144 | ||
docker network create elastic | ||
docker run -d --name=elasticsearch --network=elastic -p 9200:9200 -e discovery.type=single-node -e node.name=es docker.elastic.co/elasticsearch/elasticsearch:${{ matrix.elasticsearch }} sh -c "./bin/elasticsearch-plugin install --batch ingest-attachment && /usr/local/bin/docker-entrypoint.sh" | ||
docker run --rm --network=elastic curlimages/curl --max-time 120 --retry-max-time 120 --retry 120 --retry-delay 5 --retry-all-errors --show-error --silent http://elasticsearch:9200 | ||
- name: 'Run unit tests' | ||
run: | | ||
vendor/bin/phpunit |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,31 +12,36 @@ | |
{ "name": "Jeremy Mikola", "email": "[email protected]" } | ||
], | ||
"require": { | ||
"php": "^7.1", | ||
"symfony/framework-bundle": "^3.4|^4.3|^5", | ||
"symfony/console": "^3.4|^4.3|^5", | ||
"symfony/dependency-injection": "^3.4|^4.3|^5", | ||
"symfony/property-access": "^3.4|^4.3|^5", | ||
"pagerfanta/pagerfanta": "^1.0.5|^2.0", | ||
"php": "^8.0", | ||
"symfony/framework-bundle": "^4.4", | ||
"symfony/console": "^4.4", | ||
"symfony/dependency-injection": "^4.4", | ||
"symfony/property-access": "^4.4", | ||
"pagerfanta/pagerfanta": "^3.6", | ||
"psr/log": "^1.0", | ||
"ruflin/elastica": "^5.3.5|^6.1.1" | ||
"ruflin/elastica": "^6.2" | ||
}, | ||
"require-dev": { | ||
"doctrine/orm": "^2.5", | ||
"doctrine/doctrine-bundle": "^1.6|^2", | ||
"doctrine/persistence": "^1.3.4", | ||
"doctrine/orm": "^2.8", | ||
"doctrine/doctrine-bundle": "^2.1.1", | ||
"doctrine/persistence": "^2.0", | ||
"doctrine/phpcr-bundle": "^1.3|^2.0", | ||
"doctrine/phpcr-odm": "^1.4", | ||
"jackalope/jackalope-doctrine-dbal": "^1.2", | ||
"jms/serializer-bundle": "^2.4|^3.5", | ||
"phpunit/phpunit": "^6.5.14", | ||
"jms/serializer-bundle": "^3.5", | ||
"phpunit/phpunit": "^9.5", | ||
"knplabs/knp-components": "^1.2|^2.3", | ||
"symfony/expression-language" : "^3.4|^4.3|^5", | ||
"symfony/twig-bundle": "^3.4|^4.3|^5", | ||
"symfony/serializer": "^3.4|^4.3|^5", | ||
"symfony/yaml": "^3.4|^4.3|^5", | ||
"symfony/twig-bundle": "^4.4", | ||
"symfony/serializer": "^4.4", | ||
"symfony/yaml": "^4.4", | ||
"friendsofphp/php-cs-fixer": "^2.2", | ||
"symfony/web-profiler-bundle": "^3.4|^4.3|^5" | ||
"symfony/web-profiler-bundle": "^4.4", | ||
"doctrine/mongodb-odm-bundle": "^4.5", | ||
"phpspec/prophecy-phpunit": "^2.0", | ||
"pagerfanta/doctrine-mongodb-odm-adapter": "^3.6", | ||
"pagerfanta/doctrine-orm-adapter": "^3.6", | ||
"pagerfanta/doctrine-phpcr-odm-adapter": "^3.6" | ||
}, | ||
"suggest": { | ||
"enqueue/elastica-bundle": "The bundle adds extra features to FOSElasticaBundle bundle. Aimed to improve performance." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.