This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into natural-keys
- Loading branch information
Showing
41 changed files
with
216 additions
and
148 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
.gitignore export-ignore | ||
.php_cs export-ignore | ||
.travis.yml export-ignore | ||
autoload.php.dist export-ignore | ||
composer.json export-ignore | ||
phpunit.xml.dist export-ignore | ||
README.md export-ignore | ||
Tests/ export-ignore | ||
UPGRADE*.md export-ignore | ||
* text=auto | ||
|
||
/.github export-ignore | ||
/Tests export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.php_cs export-ignore | ||
/autoload.php.dist export-ignore | ||
/phpunit.xml.dist export-ignore |
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,64 @@ | ||
name: "CI Tests" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
env: | ||
fail-fast: true | ||
PHPUNIT_FLAGS: "-v" | ||
SYMFONY_DEPRECATIONS_HELPER: 40 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: PHP v${{ matrix.php }}, Symfony v${{ matrix.symfony }}} with Mongo v${{ matrix.mongodb }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { php: 7.3, mongodb: 3.6, symfony: "4.4.*", composer-flags: '--prefer-stable'} | ||
- { php: 7.4, mongodb: 3.6, symfony: "5.4.*", composer-flags: '--prefer-stable'} | ||
- { php: 8.0, mongodb: 3.6, symfony: "5.4.*", composer-flags: '--prefer-stable'} | ||
- { php: 8.0, mongodb: 3.6, symfony: "6.0.*", composer-flags: '--prefer-stable'} | ||
- { php: 8.1, mongodb: 3.6, symfony: "6.1.*@dev", composer-flags: '' } | ||
services: | ||
mongo: | ||
image: mongo:${{ matrix.mongodb }} | ||
ports: | ||
- 27017:27017 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: "Installing php" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: curl,mbstring,xdebug,mongodb | ||
ini-values: date.timezone="Europe/Paris" | ||
coverage: xdebug | ||
tools: composer | ||
- name: Show PHP version | ||
run: php -v && composer -V | ||
- name: Download Composer cache dependencies from cache | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Install Symfony ${{ matrix.symfony }} | ||
run: composer require symfony/symfony:${{ matrix.symfony }} --no-update | ||
- name: "Require symfony/messenger" | ||
run: "composer require --dev symfony/doctrine-messenger --no-update" | ||
if: "${{ startsWith(matrix.symfony, '5.3') || startsWith(matrix.symfony, '5.4') }}" | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ matrix.os }}-composer- | ||
- name: Install dependencies | ||
run: | | ||
perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json | ||
composer config platform.ext-mongo 1.6.16 | ||
composer require alcaeus/mongo-php-adapter --no-update | ||
composer update ${{ matrix.composer-flags }} --prefer-dist | ||
- name: "Run PHPUnit Tests" | ||
run: "composer test" |
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
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
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.