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 #110 from basz/next
removed travis in favor of gh actions plus support for php 8.2
- Loading branch information
Showing
90 changed files
with
3,375 additions
and
416 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,56 @@ | ||
name: PHP Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: ["7.4", "8.0", "8.1", "8.2"] | ||
amqp-version: ["v1.11.0", "v2.1.0"] | ||
composer-flags: ["", "--prefer-lowest --prefer-stable"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: RabbitMQ in GitHub Actions | ||
uses: Namoshek/rabbitmq-github-action@v1.1.0 | ||
with: | ||
version: "3" | ||
ports: "5672:5672 5671:5671" | ||
certificates: ${{ github.workspace }}/provision/test_certs | ||
config: ${{ github.workspace }}/provision/rabbitmq.config | ||
definitions: ${{ github.workspace }}/provision/definitions.json | ||
container-name: "rabbitmq" | ||
|
||
- name: Set up PHP ${{ matrix.php-version }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: amqp-${{ matrix.amqp-version }} | ||
tools: composer:v2 | ||
coverage: "xdebug" | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install dependencies | ||
run: composer update --prefer-dist ${{ matrix.composer-flags }} | ||
|
||
- name: Run tests | ||
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --exclude-group=ssl --coverage-text --coverage-clover ./build/logs/clover.xml | ||
|
||
# - name: Upload coverage | ||
# run: php vendor/bin/php-coveralls -v | ||
# if: ${{ matrix.php-version }} == '8.1' |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,78 @@ | ||
{ | ||
"name": "prolic/humus-amqp", | ||
"type": "library", | ||
"description": "PHP-AMQP library with RabbitMQ Extensions", | ||
"keywords": ["rabbit", "rabbitmq", "queue", "amqp", "humus", "messaging"], | ||
"homepage": "https://github.com/prolic/HumusAmqp", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Sascha-Oliver Prolic", | ||
"email": "saschaprolic@googlemail.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.4 || ^8.0", | ||
"ext-json": "*", | ||
"beberlei/assert": "^3.2.7", | ||
"marc-mabe/php-enum": "^4.2", | ||
"psr/log": "^1.0 || ^2.0 || ^3.0" | ||
}, | ||
"require-dev": { | ||
"ext-pcntl": "*", | ||
"laminas/laminas-servicemanager": "^3.0", | ||
"malukenho/docheader": "^0.1.8", | ||
"php-amqplib/php-amqplib": "^2.11", | ||
"php-coveralls/php-coveralls": "^2.4", | ||
"php-mock/php-mock-phpunit": "^2.6", | ||
"phpspec/prophecy": "^1.10", | ||
"phpunit/phpunit": "^8.5", | ||
"prooph/php-cs-fixer-config": "^0.4.0", | ||
"psr/container": "^1.0", | ||
"sandrokeil/interop-config": "^1.0 || ^2.0", | ||
"symfony/console": "^5.0" | ||
}, | ||
"conflict": { | ||
"sandrokeil/interop-config": "<1.0", | ||
"container-interop/container-interop": "<1.2" | ||
}, | ||
"suggest": { | ||
"ext-pcntl": "For process control management", | ||
"ext-amqp": ">= 1.9.3 For usage together with php amqp extension", | ||
"php-amqplib/php-amqplib": ">= 2.11 For usage together with php-amqplib", | ||
"symfony/console": "For usage of the provided console tool", | ||
"psr/container": "For usage of provided factories", | ||
"sandrokeil/interop-config": "For usage of provided factories" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Humus\\Amqp\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"HumusTest\\Amqp\\": "tests/" | ||
} | ||
}, | ||
"bin": [ | ||
"bin/humus-amqp" | ||
], | ||
"scripts": { | ||
"check": [ | ||
"@cs", | ||
"@test" | ||
], | ||
"cs": "php-cs-fixer fix -v --diff --dry-run", | ||
"cs-fix": "php-cs-fixer fix -v --diff", | ||
"test": "phpunit" | ||
"name": "prolic/humus-amqp", | ||
"type": "library", | ||
"description": "PHP-AMQP library with RabbitMQ Extensions", | ||
"keywords": [ | ||
"rabbit", | ||
"rabbitmq", | ||
"queue", | ||
"amqp", | ||
"humus", | ||
"messaging" | ||
], | ||
"homepage": "https://github.com/prolic/HumusAmqp", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Sascha-Oliver Prolic", | ||
"email": "saschaprolic@googlemail.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.4 || ^8.0", | ||
"ext-json": "*", | ||
"beberlei/assert": "^3.2.7", | ||
"marc-mabe/php-enum": "^4.7", | ||
"psr/log": "^1.0 || ^2.0 || ^3.0" | ||
}, | ||
"require-dev": { | ||
"ext-pcntl": "*", | ||
"laminas/laminas-servicemanager": "^3.0", | ||
"malukenho/docheader": "^0.1.8 || ^1.0", | ||
"php-amqplib/php-amqplib": "^3.0", | ||
"php-coveralls/php-coveralls": "^2.4", | ||
"php-mock/php-mock-phpunit": "^2.6", | ||
"phpspec/prophecy": "^1.17", | ||
"phpunit/phpunit": "^9.6", | ||
"prooph/php-cs-fixer-config": "^0.5.0", | ||
"psr/container": "^1.0", | ||
"sandrokeil/interop-config": "^1.0 || ^2.0", | ||
"symfony/console": "^5.4 || ^6.3", | ||
"phpspec/prophecy-phpunit": "^2.0" | ||
}, | ||
"conflict": { | ||
"sandrokeil/interop-config": "<1.0", | ||
"container-interop/container-interop": "<1.2" | ||
}, | ||
"suggest": { | ||
"ext-pcntl": "For process control management", | ||
"ext-amqp": ">= 1.9.3 For usage together with php amqp extension", | ||
"php-amqplib/php-amqplib": ">= 2.11 For usage together with php-amqplib", | ||
"symfony/console": "For usage of the provided console tool", | ||
"psr/container": "For usage of provided factories", | ||
"sandrokeil/interop-config": "For usage of provided factories" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Humus\\Amqp\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"HumusTest\\Amqp\\": "tests/", | ||
"AMQPBasicProperties\\": "stubs/amqp/" | ||
} | ||
}, | ||
"bin": [ | ||
"bin/humus-amqp" | ||
], | ||
"scripts": { | ||
"check": [ | ||
"@cs", | ||
"@test" | ||
], | ||
"cs": "php-cs-fixer fix -v --diff --dry-run", | ||
"cs-fix": "php-cs-fixer fix -v --diff", | ||
"test": "phpunit" | ||
} | ||
} |
Oops, something went wrong.