diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48cb4f16c..9e9887e2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: CI -on: [pull_request] +on: + pull_request: + push: + branches: + - master jobs: static_analysis: name: Static analysis @@ -12,18 +16,6 @@ jobs: PATTERNS: | pkg/**/*.php - - name: Get Composer Cache Directory - id: composer-cache - run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - - uses: actions/cache@v2 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: shivammathur/setup-php@v2 with: php-version: '7.4' @@ -31,8 +23,10 @@ jobs: extensions: mongodb, redis, :xdebug ini-values: memory_limit=2048M - - run: php ./bin/fix-symfony-version.php "4.3.*" - - run: composer install --no-progress + - run: php ./bin/fix-symfony-version.php "5.2.*" + + - uses: "ramsey/composer-install@v1" + - run: sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php - run: docker run --workdir="/mqdev" -v "`pwd`:/mqdev" --rm enqueue/dev:latest php -d memory_limit=1024M bin/phpstan analyse -l 1 -c phpstan.neon --error-format=github -- ${{ env.GIT_DIFF_FILTERED }} @@ -49,18 +43,6 @@ jobs: PATTERNS: | pkg/**/*.php - - name: Get Composer Cache Directory - id: composer-cache - run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - - uses: actions/cache@v2 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: shivammathur/setup-php@v2 with: php-version: '7.4' @@ -68,8 +50,10 @@ jobs: extensions: mongodb, redis, :xdebug ini-values: memory_limit=2048M - - run: php ./bin/fix-symfony-version.php "4.3.*" - - run: composer install --no-progress + - run: php ./bin/fix-symfony-version.php "5.2.*" + + - uses: "ramsey/composer-install@v1" + - run: sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php - run: ./bin/php-cs-fixer fix --config=.php_cs.php --no-interaction --dry-run --diff -v --path-mode=intersection -- ${{ env.GIT_DIFF_FILTERED }} @@ -118,6 +102,12 @@ jobs: functional_tests: false rdkafka_tests: false prepare_container: false + - php: 7.4 + symfony_version: 5.2.* + unit_tests: true + functional_tests: false + rdkafka_tests: false + prepare_container: false - php: 7.3 # same as in the container symfony_version: 4.3.* unit_tests: false @@ -136,24 +126,29 @@ jobs: functional_tests: false rdkafka_tests: true prepare_container: true + - php: "8.0" + symfony_version: 5.2.* + unit_tests: true + functional_tests: false + rdkafka_tests: false + prepare_container: false + - php: "8.0" + symfony_version: 5.2.* + unit_tests: false + functional_tests: true + rdkafka_tests: false + prepare_container: true + - php: "8.0" + symfony_version: 5.2.* + unit_tests: false + rdkafka_tests: true + prepare_container: true name: PHP ${{ matrix.php }} tests on Sf ${{ matrix.symfony_version }}, unit=${{ matrix.unit_tests }}, func=${{ matrix.functional_tests }}, rdkafka=${{ matrix.rdkafka_tests }} steps: - uses: actions/checkout@v2 - - name: Get Composer Cache Directory - id: composer-cache - run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - - uses: actions/cache@v2 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - ${{ runner.os }}-composer- - - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} @@ -163,11 +158,13 @@ jobs: - run: php ./bin/fix-symfony-version.php "${{ matrix.symfony_version }}" - - run: composer install --no-progress + - uses: "ramsey/composer-install@v1" - run: sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php - run: bin/dev -b + env: + PHP_VERSION: "${{ matrix.php }}" if: matrix.prepare_container - run: bin/phpunit --exclude-group=functional diff --git a/README.md b/README.md index 1d1cccb5f..fde09e871 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@
-
+
@@ -30,71 +30,71 @@ Features:
* Battle-tested. Used in production.
* Supported transports
* [AMQP(s)](https://php-enqueue.github.io/transport/amqp/) based on [PHP AMQP extension](https://github.com/pdezwart/php-amqp)
-[](https://travis-ci.org/php-enqueue/amqp-ext)
+[](https://github.com/php-enqueue/amqp-ext/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/amqp-ext/stats)
[](https://packagist.org/packages/enqueue/amqp-ext)
* [AMQP](https://php-enqueue.github.io/transport/amqp_bunny/) based on [bunny](https://github.com/jakubkulhan/bunny)
-[](https://travis-ci.org/php-enqueue/amqp-bunny)
+[](https://github.com/php-enqueue/amqp-bunny/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/amqp-bunny/stats)
[](https://packagist.org/packages/enqueue/amqp-bunny)
* [AMQP(s)](https://php-enqueue.github.io/transport/amqp_lib/) based on [php-amqplib](https://github.com/php-amqplib/php-amqplib)
-[](https://travis-ci.org/php-enqueue/amqp-lib)
+[](https://github.com/php-enqueue/amqp-lib/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/amqp-lib/stats)
[](https://packagist.org/packages/enqueue/amqp-lib)
* [Beanstalk](https://php-enqueue.github.io/transport/pheanstalk/)
-[](https://travis-ci.org/php-enqueue/pheanstalk)
+[](https://github.com/php-enqueue/pheanstalk/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/pheanstalk/stats)
[](https://packagist.org/packages/enqueue/pheanstalk)
* [STOMP](https://php-enqueue.github.io/transport/stomp/)
-[](https://travis-ci.org/php-enqueue/stomp)
+[](https://github.com/php-enqueue/stomp/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/stomp/stats)
[](https://packagist.org/packages/enqueue/stomp)
* [Amazon SQS](https://php-enqueue.github.io/transport/sqs/)
-[](https://travis-ci.org/php-enqueue/sqs)
+[](https://github.com/php-enqueue/sqs/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/sqs/stats)
[](https://packagist.org/packages/enqueue/sqs)
* [Amazon SNS](https://php-enqueue.github.io/transport/sns/)
-[](https://travis-ci.org/php-enqueue/sns)
+[](https://github.com/php-enqueue/sns/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/sns/stats)
[](https://packagist.org/packages/enqueue/sns)
* [Amazon SNS\SQS](https://php-enqueue.github.io/transport/snsqs/)
-[](https://travis-ci.org/php-enqueue/snsqs)
+[](https://github.com/php-enqueue/snsqs/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/snsqs/stats)
[](https://packagist.org/packages/enqueue/snsqs)
* [Google PubSub](https://php-enqueue.github.io/transport/gps/)
-[](https://travis-ci.org/php-enqueue/gps)
+[](https://github.com/php-enqueue/gps/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/gps/stats)
[](https://packagist.org/packages/enqueue/gps)
* [Kafka](https://php-enqueue.github.io/transport/kafka/)
-[](https://travis-ci.org/php-enqueue/rdkafka)
+[](https://github.com/php-enqueue/rdkafka/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/rdkafka/stats)
[](https://packagist.org/packages/enqueue/rdkafka)
* [Redis](https://php-enqueue.github.io/transport/redis/)
-[](https://travis-ci.org/php-enqueue/redis)
+[](https://github.com/php-enqueue/redis/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/redis/stats)
[](https://packagist.org/packages/enqueue/redis)
* [Gearman](https://php-enqueue.github.io/transport/gearman/)
-[](https://travis-ci.org/php-enqueue/gearman)
+[](https://github.com/php-enqueue/gearman/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/gearman/stats)
[](https://packagist.org/packages/enqueue/gearman)
* [Doctrine DBAL](https://php-enqueue.github.io/transport/dbal/)
-[](https://travis-ci.org/php-enqueue/dbal)
+[](https://github.com/php-enqueue/dbal/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/dbal/stats)
[](https://packagist.org/packages/enqueue/dbal)
* [Filesystem](https://php-enqueue.github.io/transport/filesystem/)
-[](https://travis-ci.org/php-enqueue/fs)
+[](https://github.com/php-enqueue/fs/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/fs/stats)
[](https://packagist.org/packages/enqueue/fs)
* [Mongodb](https://php-enqueue.github.io/transport/mongodb/)
-[](https://travis-ci.org/php-enqueue/mongodb)
+[](https://github.com/php-enqueue/mongodb/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/mongodb/stats)
[](https://packagist.org/packages/enqueue/mongodb)
* [WAMP](https://php-enqueue.github.io/transport/wamp/)
-[](https://travis-ci.org/php-enqueue/wamp)
+[](https://github.com/php-enqueue/wamp/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/wamp/stats)
[](https://packagist.org/packages/enqueue/wamp)
* [Null](https://php-enqueue.github.io/transport/null/)
-[](https://travis-ci.org/php-enqueue/null)
+[](https://github.com/php-enqueue/null/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/null/stats)
[](https://packagist.org/packages/enqueue/null)
* [the others are coming](https://github.com/php-enqueue/enqueue-dev/issues/284)
diff --git a/bin/dev b/bin/dev
index e5f40ffbd..a50b7ad66 100755
--- a/bin/dev
+++ b/bin/dev
@@ -6,7 +6,7 @@ set -e
while getopts "bustefdp" OPTION; do
case $OPTION in
b)
- docker-compose pull && docker-compose build
+ docker-compose pull -q && docker-compose build
;;
u)
docker-compose up
diff --git a/composer.json b/composer.json
index b1ba9ff8b..9d899a5f4 100644
--- a/composer.json
+++ b/composer.json
@@ -8,8 +8,14 @@
"cs-lint": "bin/php-cs-fixer fix --config=.php_cs.php --no-interaction --dry-run --diff",
"phpstan": "bin/phpstan analyse --memory-limit=512M -c phpstan.neon"
},
+ "repositories": [
+ {
+ "type": "git",
+ "url": "https://github.com/andrewmy/php-rabbitmq-management-api.git"
+ }
+ ],
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"ext-amqp": "^1.9.3",
"ext-gearman": "^2.0",
@@ -20,7 +26,7 @@
"queue-interop/queue-interop": "^0.7|^0.8",
"bunny/bunny": "^0.2.4|^0.3|^0.4",
"php-amqplib/php-amqplib": "^2.7",
- "doctrine/dbal": "^2.6,<2.10",
+ "doctrine/dbal": "^2.12",
"ramsey/uuid": "^2|^3.5|^4.0",
"psr/log": "^1",
"psr/container": "^1",
@@ -30,10 +36,10 @@
"mongodb/mongodb": "^1.2",
"pda/pheanstalk": "^3",
"aws/aws-sdk-php": "^3.26",
- "stomp-php/stomp-php": "^4",
- "php-http/guzzle6-adapter": "^1.1",
- "php-http/client-common": "^1.7@dev",
- "richardfullmer/rabbitmq-management-api": "^2.0",
+ "stomp-php/stomp-php": "^4|^5",
+ "php-http/guzzle7-adapter": "^0.1.1",
+ "php-http/client-common": "^2.2.1",
+ "richardfullmer/rabbitmq-management-api": "^2.1.1",
"predis/predis": "^1.1",
"thruway/client": "^0.5.0",
"thruway/pawl-transport": "^0.5.0",
@@ -58,7 +64,7 @@
"symfony/yaml": "^4.3|^5",
"empi89/php-amqp-stubs": "*@dev",
"doctrine/doctrine-bundle": "~1.2|^2",
- "doctrine/mongodb-odm-bundle": "^3.5|^4",
+ "doctrine/mongodb-odm-bundle": "^3.5|^4.3",
"alcaeus/mongo-php-adapter": "^1.0",
"kwn/php-rdkafka-stubs": "^1.0.2 | ^2.0",
"friendsofphp/php-cs-fixer": "^2",
diff --git a/docker-compose.yml b/docker-compose.yml
index f782de48e..ae4256c42 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -2,7 +2,12 @@ version: '2'
services:
dev:
- image: enqueue/dev:latest
+ # when image publishing gets sorted:
+ # image: enqueue/dev:${PHP_VERSION}
+ build:
+ context: docker
+ args:
+ PHP_VERSION: "${PHP_VERSION:-7.3}"
depends_on:
- rabbitmq
- mysql
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 86f460f8e..2b21de82b 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,24 +1,55 @@
-FROM formapro/nginx-php-fpm:7.3-latest-all-exts
+ARG PHP_VERSION=7.3
+FROM makasim/nginx-php-fpm:${PHP_VERSION}-all-exts
+
+ARG PHP_VERSION
## libs
RUN set -x && \
apt-get update && \
- apt-get install -y --no-install-recommends --no-install-suggests wget curl openssl ca-certificates nano netcat php7.3-dev php7.3-redis php7.3-pgsql git python php-amqp
+ apt-get install -y --no-install-recommends --no-install-suggests \
+ wget \
+ curl \
+ openssl \
+ ca-certificates \
+ nano \
+ netcat \
+ php${PHP_VERSION}-dev \
+ php${PHP_VERSION}-redis \
+ php${PHP_VERSION}-pgsql \
+ git \
+ python \
+ php${PHP_VERSION}-amqp \
+ php${PHP_VERSION}-xml \
+ php${PHP_VERSION}-mysql \
+ php${PHP_VERSION}-curl \
+ libgearman-dev \
+ php-pear \
+ make \
+ && \
+ pecl channel-update pecl.php.net && \
+ pecl install gearman && \
+ if [ ! -f /etc/php/${PHP_VERSION}/cli/conf.d/20-gearman.ini ]; then \
+ echo "extension=gearman.so" > /etc/php/${PHP_VERSION}/cli/conf.d/20-gearman.ini && \
+ echo "extension=gearman.so" > /etc/php/${PHP_VERSION}/fpm/conf.d/20-gearman.ini \
+ ; \
+ fi;
## librdkafka
RUN set -x && \
apt-get update && \
- apt-get install -y --no-install-recommends --no-install-suggests g++ php-pear php7.3-dev make && \
+ apt-get install -y --no-install-recommends --no-install-suggests \
+ g++ \
+ && \
mkdir -p $HOME/librdkafka && \
cd $HOME/librdkafka && \
git clone https://github.com/edenhill/librdkafka.git . && \
git checkout v1.0.0 && \
./configure && make && make install && \
pecl install rdkafka && \
- echo "extension=rdkafka.so" > /etc/php/7.3/cli/conf.d/10-rdkafka.ini && \
- echo "extension=rdkafka.so" > /etc/php/7.3/fpm/conf.d/10-rdkafka.ini
+ echo "extension=rdkafka.so" > /etc/php/${PHP_VERSION}/cli/conf.d/10-rdkafka.ini && \
+ echo "extension=rdkafka.so" > /etc/php/${PHP_VERSION}/fpm/conf.d/10-rdkafka.ini
-COPY ./php/cli.ini /etc/php/7.3/cli/conf.d/1-dev_cli.ini
+COPY ./php/cli.ini /etc/php/${PHP_VERSION}/cli/conf.d/1-dev_cli.ini
COPY ./bin/dev_entrypoiny.sh /usr/local/bin/entrypoint.sh
RUN chmod u+x /usr/local/bin/entrypoint.sh
diff --git a/docker/thruway/Dockerfile b/docker/thruway/Dockerfile
index c9e795478..3bca735b2 100644
--- a/docker/thruway/Dockerfile
+++ b/docker/thruway/Dockerfile
@@ -1,4 +1,4 @@
-FROM formapro/nginx-php-fpm:latest-all-exts
+FROM makasim/nginx-php-fpm:latest-all-exts
RUN mkdir -p /thruway
WORKDIR /thruway
diff --git a/pkg/amqp-bunny/.github/workflows/ci.yml b/pkg/amqp-bunny/.github/workflows/ci.yml
new file mode 100644
index 000000000..67837ef97
--- /dev/null
+++ b/pkg/amqp-bunny/.github/workflows/ci.yml
@@ -0,0 +1,27 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/amqp-bunny/.travis.yml b/pkg/amqp-bunny/.travis.yml
deleted file mode 100644
index 02ba7238b..000000000
--- a/pkg/amqp-bunny/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/amqp-bunny/README.md b/pkg/amqp-bunny/README.md
index 9efcfa531..41754124f 100644
--- a/pkg/amqp-bunny/README.md
+++ b/pkg/amqp-bunny/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# AMQP Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/amqp-bunny)
+[](https://github.com/php-enqueue/amqp-bunny/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/amqp-bunny)
[](https://packagist.org/packages/enqueue/amqp-bunny)
diff --git a/pkg/amqp-bunny/composer.json b/pkg/amqp-bunny/composer.json
index 01d6a8c4a..9e7d83bb4 100644
--- a/pkg/amqp-bunny/composer.json
+++ b/pkg/amqp-bunny/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/amqp-interop": "^0.8",
"queue-interop/queue-interop": "^0.8",
"bunny/bunny": "^0.4",
diff --git a/pkg/amqp-ext/.github/workflows/ci.yml b/pkg/amqp-ext/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd96b2abe
--- /dev/null
+++ b/pkg/amqp-ext/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - run: php Tests/fix_composer_json.php
+
+ - uses: "ramsey/composer-install@v1"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/amqp-ext/.travis.yml b/pkg/amqp-ext/.travis.yml
deleted file mode 100644
index 8210653a3..000000000
--- a/pkg/amqp-ext/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - php Tests/fix_composer_json.php
- - composer self-update
- - composer install
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/amqp-ext/README.md b/pkg/amqp-ext/README.md
index e750d3c36..f739aa94a 100644
--- a/pkg/amqp-ext/README.md
+++ b/pkg/amqp-ext/README.md
@@ -8,7 +8,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# AMQP Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/amqp-ext)
+[](https://github.com/php-enqueue/amqp-ext/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/amqp-ext)
[](https://packagist.org/packages/enqueue/amqp-ext)
diff --git a/pkg/amqp-ext/composer.json b/pkg/amqp-ext/composer.json
index 203908160..18b1f72cb 100644
--- a/pkg/amqp-ext/composer.json
+++ b/pkg/amqp-ext/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"ext-amqp": "^1.9.3",
"queue-interop/amqp-interop": "^0.8",
"queue-interop/queue-interop": "^0.8",
diff --git a/pkg/amqp-lib/.github/workflows/ci.yml b/pkg/amqp-lib/.github/workflows/ci.yml
new file mode 100644
index 000000000..a168dca05
--- /dev/null
+++ b/pkg/amqp-lib/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/amqp-lib/.travis.yml b/pkg/amqp-lib/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/amqp-lib/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/amqp-lib/README.md b/pkg/amqp-lib/README.md
index 1a7be690a..64a1cd684 100644
--- a/pkg/amqp-lib/README.md
+++ b/pkg/amqp-lib/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# AMQP Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/amqp-lib)
+[](https://github.com/php-enqueue/amqp-lib/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/amqp-lib)
[](https://packagist.org/packages/enqueue/amqp-lib)
diff --git a/pkg/amqp-lib/composer.json b/pkg/amqp-lib/composer.json
index 2d9d2515f..71867a911 100644
--- a/pkg/amqp-lib/composer.json
+++ b/pkg/amqp-lib/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"php-amqplib/php-amqplib": "^2.10",
"queue-interop/amqp-interop": "^0.8",
"queue-interop/queue-interop": "^0.8",
diff --git a/pkg/amqp-tools/.github/workflows/ci.yml b/pkg/amqp-tools/.github/workflows/ci.yml
new file mode 100644
index 000000000..67837ef97
--- /dev/null
+++ b/pkg/amqp-tools/.github/workflows/ci.yml
@@ -0,0 +1,27 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/amqp-tools/README.md b/pkg/amqp-tools/README.md
index 14f007cbb..8d3f35dc0 100644
--- a/pkg/amqp-tools/README.md
+++ b/pkg/amqp-tools/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# AMQP tools
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/amqp-tools)
+[](https://github.com/php-enqueue/amqp-tools/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/amqp-tools)
[](https://packagist.org/packages/enqueue/amqp-tools)
diff --git a/pkg/amqp-tools/composer.json b/pkg/amqp-tools/composer.json
index 52c582954..cdb2321fd 100644
--- a/pkg/amqp-tools/composer.json
+++ b/pkg/amqp-tools/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/amqp-interop": "^0.8",
"queue-interop/queue-interop": "^0.8",
"enqueue/dsn": "^0.10"
diff --git a/pkg/async-command/.github/workflows/ci.yml b/pkg/async-command/.github/workflows/ci.yml
new file mode 100644
index 000000000..a168dca05
--- /dev/null
+++ b/pkg/async-command/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/async-command/.travis.yml b/pkg/async-command/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/async-command/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/async-command/README.md b/pkg/async-command/README.md
index bd895676d..cb6eef58c 100644
--- a/pkg/async-command/README.md
+++ b/pkg/async-command/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Symfony Async Command.
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/async-command)
+[](https://github.com/php-enqueue/async-command/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/async-command)
[](https://packagist.org/packages/enqueue/async-command)
diff --git a/pkg/async-command/composer.json b/pkg/async-command/composer.json
index 24a24e80a..4317d1eca 100644
--- a/pkg/async-command/composer.json
+++ b/pkg/async-command/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": ">=7.1",
+ "php": "^7.3|^8.0",
"enqueue/enqueue": "^0.10",
"queue-interop/queue-interop": "^0.8",
"symfony/console": "^4.3|^5",
diff --git a/pkg/async-event-dispatcher/.github/workflows/ci.yml b/pkg/async-event-dispatcher/.github/workflows/ci.yml
new file mode 100644
index 000000000..a168dca05
--- /dev/null
+++ b/pkg/async-event-dispatcher/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/async-event-dispatcher/.travis.yml b/pkg/async-event-dispatcher/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/async-event-dispatcher/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/async-event-dispatcher/README.md b/pkg/async-event-dispatcher/README.md
index 93cee308e..1ba408fa7 100644
--- a/pkg/async-event-dispatcher/README.md
+++ b/pkg/async-event-dispatcher/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Symfony Async Event Dispatcher.
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/async-event-dispathcer)
+[](https://github.com/php-enqueue/async-event-dispathcer/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/async-event-dispathcer)
[](https://packagist.org/packages/enqueue/async-event-dispathcer)
diff --git a/pkg/async-event-dispatcher/composer.json b/pkg/async-event-dispatcher/composer.json
index d4a72125b..d5adc5f7b 100644
--- a/pkg/async-event-dispatcher/composer.json
+++ b/pkg/async-event-dispatcher/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"enqueue/enqueue": "^0.10",
"queue-interop/queue-interop": "^0.8",
"symfony/event-dispatcher": "^4.3|^5"
diff --git a/pkg/dbal/.github/workflows/ci.yml b/pkg/dbal/.github/workflows/ci.yml
new file mode 100644
index 000000000..a168dca05
--- /dev/null
+++ b/pkg/dbal/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/dbal/.travis.yml b/pkg/dbal/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/dbal/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/dbal/README.md b/pkg/dbal/README.md
index 77af52655..7f4d2d007 100644
--- a/pkg/dbal/README.md
+++ b/pkg/dbal/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Doctrine DBAL Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/dbal)
+[](https://github.com/php-enqueue/dbal/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/dbal)
[](https://packagist.org/packages/enqueue/dbal)
diff --git a/pkg/dbal/composer.json b/pkg/dbal/composer.json
index dfeba65f3..fc9c4a595 100644
--- a/pkg/dbal/composer.json
+++ b/pkg/dbal/composer.json
@@ -6,9 +6,9 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
- "doctrine/dbal": "^2.6",
+ "doctrine/dbal": "^2.12",
"ramsey/uuid": "^3|^4"
},
"require-dev": {
diff --git a/pkg/dsn/.github/workflows/ci.yml b/pkg/dsn/.github/workflows/ci.yml
new file mode 100644
index 000000000..b23e42104
--- /dev/null
+++ b/pkg/dsn/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit
diff --git a/pkg/dsn/.travis.yml b/pkg/dsn/.travis.yml
deleted file mode 100644
index 27c064a7c..000000000
--- a/pkg/dsn/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit
diff --git a/pkg/dsn/composer.json b/pkg/dsn/composer.json
index 06ef139e9..3cdac4c2d 100644
--- a/pkg/dsn/composer.json
+++ b/pkg/dsn/composer.json
@@ -6,10 +6,10 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.1.3"
+ "php": "^7.3|^8.0"
},
"require-dev": {
- "phpunit/phpunit": "~7.5"
+ "phpunit/phpunit": "^9.5"
},
"support": {
"email": "opensource@forma-pro.com",
diff --git a/pkg/enqueue-bundle/.github/workflows/ci.yml b/pkg/enqueue-bundle/.github/workflows/ci.yml
new file mode 100644
index 000000000..0185cad38
--- /dev/null
+++ b/pkg/enqueue-bundle/.github/workflows/ci.yml
@@ -0,0 +1,32 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+ extensions: mongodb
+
+ - run: php Tests/fix_composer_json.php
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/enqueue-bundle/.travis.yml b/pkg/enqueue-bundle/.travis.yml
deleted file mode 100644
index 880a93f5e..000000000
--- a/pkg/enqueue-bundle/.travis.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-
-php:
- - '7.1'
-
-services:
- - mongodb
-
-before_install:
- - echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - php Tests/fix_composer_json.php
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/enqueue-bundle/README.md b/pkg/enqueue-bundle/README.md
index 54c242600..4f103b3df 100644
--- a/pkg/enqueue-bundle/README.md
+++ b/pkg/enqueue-bundle/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Message Queue Bundle
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/enqueue-bundle)
+[](https://github.com/php-enqueue/enqueue-bundle/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/enqueue-bundle)
[](https://packagist.org/packages/enqueue/enqueue-bundle)
diff --git a/pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php b/pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php
index d641227ef..c9356f1ec 100644
--- a/pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php
+++ b/pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php
@@ -113,7 +113,11 @@ public function testThrowIfClientDriverOptionsIsNotArray()
$processor = new Processor();
$this->expectException(InvalidTypeException::class);
- $this->expectExceptionMessage('Invalid type for path "enqueue.default.client.driver_options". Expected array, but got string');
+ // Exception messages vary slightly between versions
+ $this->expectExceptionMessageMatches(
+ '/Invalid type for path "enqueue\.default\.client\.driver_options"\. Expected "?array"?, but got "?string"?/'
+ );
+
$processor->processConfiguration($configuration, [[
'default' => [
'transport' => 'null:',
diff --git a/pkg/enqueue-bundle/composer.json b/pkg/enqueue-bundle/composer.json
index 43a73fa34..aded35069 100644
--- a/pkg/enqueue-bundle/composer.json
+++ b/pkg/enqueue-bundle/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"symfony/framework-bundle": "^4.3|^5",
"queue-interop/amqp-interop": "^0.8",
"queue-interop/queue-interop": "^0.8",
@@ -37,7 +37,7 @@
"enqueue/async-command": "0.10.x-dev",
"php-amqplib/php-amqplib": "^2.7",
"doctrine/doctrine-bundle": "~1.2|^2",
- "doctrine/mongodb-odm-bundle": "^3.5|^4",
+ "doctrine/mongodb-odm-bundle": "^3.5|^4.3",
"alcaeus/mongo-php-adapter": "^1.0",
"symfony/browser-kit": "^4.3|^5",
"symfony/expression-language": "^4.3|^5",
diff --git a/pkg/enqueue/.github/workflows/ci.yml b/pkg/enqueue/.github/workflows/ci.yml
new file mode 100644
index 000000000..b39495855
--- /dev/null
+++ b/pkg/enqueue/.github/workflows/ci.yml
@@ -0,0 +1,30 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+ extensions: mongodb
+
+ - run: php Tests/fix_composer_json.php
+
+ - uses: "ramsey/composer-install@v1"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/enqueue/.travis.yml b/pkg/enqueue/.travis.yml
deleted file mode 100644
index 2c830d0a6..000000000
--- a/pkg/enqueue/.travis.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
-
-services:
- - mongodb
-
-before_install:
- - echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - php Tests/fix_composer_json.php
- - composer self-update
- - composer install
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/enqueue/README.md b/pkg/enqueue/README.md
index 2e5aa5a00..f61715759 100644
--- a/pkg/enqueue/README.md
+++ b/pkg/enqueue/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Message Queue.
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/enqueue)
+[](https://github.com/php-enqueue/enqueue/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/enqueue)
[](https://packagist.org/packages/enqueue/enqueue)
diff --git a/pkg/enqueue/Resources.php b/pkg/enqueue/Resources.php
index 75884bab6..713450fed 100644
--- a/pkg/enqueue/Resources.php
+++ b/pkg/enqueue/Resources.php
@@ -14,6 +14,7 @@
use Enqueue\Pheanstalk\PheanstalkConnectionFactory;
use Enqueue\RdKafka\RdKafkaConnectionFactory;
use Enqueue\Redis\RedisConnectionFactory;
+use Enqueue\Sns\SnsConnectionFactory;
use Enqueue\SnsQs\SnsQsConnectionFactory;
use Enqueue\Sqs\SqsConnectionFactory;
use Enqueue\Stomp\StompConnectionFactory;
@@ -42,7 +43,7 @@ public static function getAvailableConnections(): array
$availableMap = [];
foreach ($map as $connectionClass => $item) {
- if (class_exists($connectionClass)) {
+ if (\class_exists($connectionClass)) {
$availableMap[$connectionClass] = $item;
}
}
@@ -156,6 +157,10 @@ public static function getKnownConnections(): array
'schemes' => ['sqs'],
'supportedSchemeExtensions' => [],
'package' => 'enqueue/sqs', ];
+ $map[SnsConnectionFactory::class] = [
+ 'schemes' => ['sns'],
+ 'supportedSchemeExtensions' => [],
+ 'package' => 'enqueue/sns', ];
$map[SnsQsConnectionFactory::class] = [
'schemes' => ['snsqs'],
'supportedSchemeExtensions' => [],
@@ -183,9 +188,9 @@ public static function getKnownConnections(): array
public static function addConnection(string $connectionFactoryClass, array $schemes, array $extensions, string $package): void
{
- if (class_exists($connectionFactoryClass)) {
+ if (\class_exists($connectionFactoryClass)) {
if (false == (new \ReflectionClass($connectionFactoryClass))->implementsInterface(ConnectionFactory::class)) {
- throw new \InvalidArgumentException(sprintf('The connection factory class "%s" must implement "%s" interface.', $connectionFactoryClass, ConnectionFactory::class));
+ throw new \InvalidArgumentException(\sprintf('The connection factory class "%s" must implement "%s" interface.', $connectionFactoryClass, ConnectionFactory::class));
}
}
diff --git a/pkg/enqueue/Tests/Symfony/ContainerProcessorRegistryTest.php b/pkg/enqueue/Tests/Symfony/ContainerProcessorRegistryTest.php
index bf6e3cd01..e0dcf2e09 100644
--- a/pkg/enqueue/Tests/Symfony/ContainerProcessorRegistryTest.php
+++ b/pkg/enqueue/Tests/Symfony/ContainerProcessorRegistryTest.php
@@ -69,7 +69,11 @@ public function testThrowErrorIfServiceDoesNotImplementProcessorReturnType()
$registry = new ContainerProcessorRegistry($containerMock);
$this->expectException(\TypeError::class);
- $this->expectExceptionMessage('Return value of Enqueue\Symfony\ContainerProcessorRegistry::get() must implement interface Interop\Queue\Processor, instance of stdClass returned');
+ // Exception messages vary slightly between versions
+ $this->expectExceptionMessageMatches(
+ '/Enqueue\\\\Symfony\\\\ContainerProcessorRegistry::get\(\).+ Interop\\\\Queue\\\\Processor,.*stdClass returned/'
+ );
+
$registry->get('processor-name');
}
diff --git a/pkg/enqueue/composer.json b/pkg/enqueue/composer.json
index e8c3f3ade..3c525f510 100644
--- a/pkg/enqueue/composer.json
+++ b/pkg/enqueue/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/amqp-interop": "^0.8",
"queue-interop/queue-interop": "^0.8",
"enqueue/null": "^0.10",
diff --git a/pkg/fs/.github/workflows/ci.yml b/pkg/fs/.github/workflows/ci.yml
new file mode 100644
index 000000000..2a2fabfb7
--- /dev/null
+++ b/pkg/fs/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: SYMFONY_DEPRECATIONS_HELPER=weak vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/fs/.travis.yml b/pkg/fs/.travis.yml
deleted file mode 100644
index b910c0fcf..000000000
--- a/pkg/fs/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - SYMFONY_DEPRECATIONS_HELPER=weak vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/fs/README.md b/pkg/fs/README.md
index b1e5411d5..596c60f29 100644
--- a/pkg/fs/README.md
+++ b/pkg/fs/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Enqueue Filesystem Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/fs)
+[](https://github.com/php-enqueue/fs/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/fs)
[](https://packagist.org/packages/enqueue/fs)
diff --git a/pkg/fs/composer.json b/pkg/fs/composer.json
index 40cfe59c3..e2b8119f1 100644
--- a/pkg/fs/composer.json
+++ b/pkg/fs/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
"enqueue/dsn": "^0.10",
"symfony/filesystem": "^4.3|^5",
diff --git a/pkg/gearman/.github/workflows/ci.yml b/pkg/gearman/.github/workflows/ci.yml
new file mode 100644
index 000000000..401aab590
--- /dev/null
+++ b/pkg/gearman/.github/workflows/ci.yml
@@ -0,0 +1,30 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+ extensions: gearman
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/gearman/.travis.yml b/pkg/gearman/.travis.yml
deleted file mode 100644
index 7e96cb089..000000000
--- a/pkg/gearman/.travis.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - sudo apt-get update
- - sudo apt-get install libgearman-dev -y --no-install-recommends --no-install-suggests
- - export GEARMAN_PACKAGE=gearman-2.0.3
- - curl -L -O https://github.com/wcgallego/pecl-gearman/archive/$GEARMAN_PACKAGE.tar.gz
- - tar zxvf $GEARMAN_PACKAGE.tar.gz
- - pushd pecl-gearman-$GEARMAN_PACKAGE
- - phpize
- - ./configure
- - make
- - make install
- - echo 'extension=gearman.so' > gearman.ini
- - phpenv config-add gearman.ini
- - popd
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/gearman/README.md b/pkg/gearman/README.md
index 9c6efde8a..b1e8bbba2 100644
--- a/pkg/gearman/README.md
+++ b/pkg/gearman/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Gearman Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/gearman)
+[](https://github.com/php-enqueue/gearman/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/gearman)
[](https://packagist.org/packages/enqueue/gearman)
diff --git a/pkg/gearman/composer.json b/pkg/gearman/composer.json
index 92dd3bc09..b88fa542e 100644
--- a/pkg/gearman/composer.json
+++ b/pkg/gearman/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"ext-gearman": "^2.0",
"queue-interop/queue-interop": "^0.8"
},
diff --git a/pkg/gps/.github/workflows/ci.yml b/pkg/gps/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd2ae7f2d
--- /dev/null
+++ b/pkg/gps/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/gps/.travis.yml b/pkg/gps/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/gps/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/gps/README.md b/pkg/gps/README.md
index fc80363ae..fd63f234d 100644
--- a/pkg/gps/README.md
+++ b/pkg/gps/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Google Pub/Sub Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/gps)
+[](https://github.com/php-enqueue/gps/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/gps)
[](https://packagist.org/packages/enqueue/gps)
diff --git a/pkg/gps/composer.json b/pkg/gps/composer.json
index 116a5dbf8..1d2ed5fd3 100644
--- a/pkg/gps/composer.json
+++ b/pkg/gps/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
"google/cloud-pubsub": "^1.0",
"enqueue/dsn": "^0.10"
diff --git a/pkg/job-queue/.github/workflows/ci.yml b/pkg/job-queue/.github/workflows/ci.yml
new file mode 100644
index 000000000..2df5ff80c
--- /dev/null
+++ b/pkg/job-queue/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-dist"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/job-queue/.travis.yml b/pkg/job-queue/.travis.yml
deleted file mode 100644
index 623b55fe0..000000000
--- a/pkg/job-queue/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - travis_retry composer install --prefer-dist
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/job-queue/README.md b/pkg/job-queue/README.md
index e02a724aa..4a9841b28 100644
--- a/pkg/job-queue/README.md
+++ b/pkg/job-queue/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Job Queue.
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/job-queue)
+[](https://github.com/php-enqueue/job-queue/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/job-queue)
[](https://packagist.org/packages/enqueue/job-queue)
diff --git a/pkg/job-queue/Test/DbalPersistedConnection.php b/pkg/job-queue/Test/DbalPersistedConnection.php
index 51160c03b..add0f3ddc 100644
--- a/pkg/job-queue/Test/DbalPersistedConnection.php
+++ b/pkg/job-queue/Test/DbalPersistedConnection.php
@@ -33,7 +33,6 @@ public function connect()
if ($this->hasPersistedConnection()) {
$this->_conn = $this->getPersistedConnection();
- $this->setConnected(true);
} else {
parent::connect();
$this->persistConnection($this->_conn);
@@ -66,22 +65,6 @@ public function rollBack()
$this->wrapTransactionNestingLevel('rollBack');
}
- /**
- * @param bool $connected
- */
- protected function setConnected($connected)
- {
- $rc = new \ReflectionClass(Connection::class);
- $rp = $rc->hasProperty('isConnected') ?
- $rc->getProperty('isConnected') :
- $rc->getProperty('_isConnected')
- ;
-
- $rp->setAccessible(true);
- $rp->setValue($this, $connected);
- $rp->setAccessible(false);
- }
-
/**
* @return int
*/
diff --git a/pkg/job-queue/composer.json b/pkg/job-queue/composer.json
index cbe720e28..980e57619 100644
--- a/pkg/job-queue/composer.json
+++ b/pkg/job-queue/composer.json
@@ -6,12 +6,12 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"enqueue/enqueue": "^0.10",
"enqueue/null": "^0.10",
"queue-interop/queue-interop": "^0.8",
"doctrine/orm": "~2.4",
- "doctrine/dbal": "<2.10"
+ "doctrine/dbal": "^2.12"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
diff --git a/pkg/mongodb/.github/workflows/ci.yml b/pkg/mongodb/.github/workflows/ci.yml
new file mode 100644
index 000000000..7a2a6f365
--- /dev/null
+++ b/pkg/mongodb/.github/workflows/ci.yml
@@ -0,0 +1,30 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+ extensions: mongodb
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/mongodb/.travis.yml b/pkg/mongodb/.travis.yml
deleted file mode 100644
index 6415d29e8..000000000
--- a/pkg/mongodb/.travis.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-sudo: false
-
-language: php
-
-php:
- - '7.1'
-
-git:
- depth: 10
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-services:
- - mongodb
-
-before_install:
- - echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
-
diff --git a/pkg/mongodb/README.md b/pkg/mongodb/README.md
index c57f15fc7..91837470b 100644
--- a/pkg/mongodb/README.md
+++ b/pkg/mongodb/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Mongodb Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/mongodb)
+[](https://github.com/php-enqueue/mongodb/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/mongodb)
[](https://packagist.org/packages/enqueue/mongodb)
diff --git a/pkg/mongodb/composer.json b/pkg/mongodb/composer.json
index d84c6e68f..a894816f7 100644
--- a/pkg/mongodb/composer.json
+++ b/pkg/mongodb/composer.json
@@ -10,7 +10,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
"mongodb/mongodb": "^1.2",
"ext-mongodb": "^1.5"
diff --git a/pkg/monitoring/.github/workflows/ci.yml b/pkg/monitoring/.github/workflows/ci.yml
new file mode 100644
index 000000000..237a49da1
--- /dev/null
+++ b/pkg/monitoring/.github/workflows/ci.yml
@@ -0,0 +1,27 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/monitoring/.travis.yml b/pkg/monitoring/.travis.yml
deleted file mode 100644
index 02ba7238b..000000000
--- a/pkg/monitoring/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/monitoring/README.md b/pkg/monitoring/README.md
index c14410cb9..a2fa75dfe 100644
--- a/pkg/monitoring/README.md
+++ b/pkg/monitoring/README.md
@@ -18,7 +18,7 @@ Queue Monitoring tool. Track sent, consumed messages. Consumers performances.
* Provides integration for Enqueue
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/monitoring)
+[](https://github.com/php-enqueue/monitoring/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/monitoring)
[](https://packagist.org/packages/enqueue/monitoring)
diff --git a/pkg/monitoring/composer.json b/pkg/monitoring/composer.json
index 92d31ec96..9942ec910 100644
--- a/pkg/monitoring/composer.json
+++ b/pkg/monitoring/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"enqueue/enqueue": "^0.10",
"enqueue/dsn": "^0.10"
},
diff --git a/pkg/null/.github/workflows/ci.yml b/pkg/null/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd2ae7f2d
--- /dev/null
+++ b/pkg/null/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/null/.travis.yml b/pkg/null/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/null/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/null/README.md b/pkg/null/README.md
index 46a57b650..c66b46952 100644
--- a/pkg/null/README.md
+++ b/pkg/null/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Enqueue Null Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/null)
+[](https://github.com/php-enqueue/null/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/null)
[](https://packagist.org/packages/enqueue/null)
diff --git a/pkg/null/composer.json b/pkg/null/composer.json
index 5c43f40bc..bd00fb0b0 100644
--- a/pkg/null/composer.json
+++ b/pkg/null/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8"
},
"require-dev": {
diff --git a/pkg/pheanstalk/.github/workflows/ci.yml b/pkg/pheanstalk/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd2ae7f2d
--- /dev/null
+++ b/pkg/pheanstalk/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/pheanstalk/.travis.yml b/pkg/pheanstalk/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/pheanstalk/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/pheanstalk/README.md b/pkg/pheanstalk/README.md
index d7beebdf8..d318fc7c2 100644
--- a/pkg/pheanstalk/README.md
+++ b/pkg/pheanstalk/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Beanstalk Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/pheanstalk)
+[](https://github.com/php-enqueue/pheanstalk/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/pheanstalk)
[](https://packagist.org/packages/enqueue/pheanstalk)
diff --git a/pkg/pheanstalk/composer.json b/pkg/pheanstalk/composer.json
index 40a32fb3c..0274089a5 100644
--- a/pkg/pheanstalk/composer.json
+++ b/pkg/pheanstalk/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"pda/pheanstalk": "^3",
"queue-interop/queue-interop": "^0.8"
},
diff --git a/pkg/rdkafka/.github/workflows/ci.yml b/pkg/rdkafka/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd96b2abe
--- /dev/null
+++ b/pkg/rdkafka/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - run: php Tests/fix_composer_json.php
+
+ - uses: "ramsey/composer-install@v1"
+
+ - run: vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/rdkafka/.travis.yml b/pkg/rdkafka/.travis.yml
deleted file mode 100644
index 8210653a3..000000000
--- a/pkg/rdkafka/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - php Tests/fix_composer_json.php
- - composer self-update
- - composer install
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/rdkafka/README.md b/pkg/rdkafka/README.md
index 1502f35c7..2a541eb63 100644
--- a/pkg/rdkafka/README.md
+++ b/pkg/rdkafka/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# RdKafka Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/rdkafka)
+[](https://github.com/php-enqueue/rdkafka/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/rdkafka)
[](https://packagist.org/packages/enqueue/rdkafka)
diff --git a/pkg/rdkafka/composer.json b/pkg/rdkafka/composer.json
index 8db8e9cc3..7128a525f 100644
--- a/pkg/rdkafka/composer.json
+++ b/pkg/rdkafka/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"ext-rdkafka": "^3.0.3|^4.0|^5.0",
"queue-interop/queue-interop": "^0.8"
},
diff --git a/pkg/redis/.github/workflows/ci.yml b/pkg/redis/.github/workflows/ci.yml
new file mode 100644
index 000000000..5dc982ea7
--- /dev/null
+++ b/pkg/redis/.github/workflows/ci.yml
@@ -0,0 +1,30 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+ extensions: redis
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/redis/.travis.yml b/pkg/redis/.travis.yml
deleted file mode 100644
index 0b8b0d098..000000000
--- a/pkg/redis/.travis.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-before_install:
- - echo "extension = redis.so" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/redis/README.md b/pkg/redis/README.md
index 0206e1e5b..f45bb79ba 100644
--- a/pkg/redis/README.md
+++ b/pkg/redis/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Redis Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/redis)
+[](https://github.com/php-enqueue/redis/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/redis)
[](https://packagist.org/packages/enqueue/redis)
diff --git a/pkg/redis/composer.json b/pkg/redis/composer.json
index ace7230e5..2bd867650 100644
--- a/pkg/redis/composer.json
+++ b/pkg/redis/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
"enqueue/dsn": "^0.10",
"ramsey/uuid": "^3|^4"
diff --git a/pkg/simple-client/.github/workflows/ci.yml b/pkg/simple-client/.github/workflows/ci.yml
new file mode 100644
index 000000000..7fcc096a9
--- /dev/null
+++ b/pkg/simple-client/.github/workflows/ci.yml
@@ -0,0 +1,31 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - run: php Tests/fix_composer_json.php
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/simple-client/.travis.yml b/pkg/simple-client/.travis.yml
deleted file mode 100644
index ebe714611..000000000
--- a/pkg/simple-client/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - php Tests/fix_composer_json.php
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/simple-client/README.md b/pkg/simple-client/README.md
index c9e0b4fa7..b3e5a3f0f 100644
--- a/pkg/simple-client/README.md
+++ b/pkg/simple-client/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Message Queue. Simple client
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/simple-client)
+[](https://github.com/php-enqueue/simple-client/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/simple-client)
[](https://packagist.org/packages/enqueue/simple-client)
diff --git a/pkg/simple-client/composer.json b/pkg/simple-client/composer.json
index e06d880af..6b277c6ad 100644
--- a/pkg/simple-client/composer.json
+++ b/pkg/simple-client/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"enqueue/enqueue": "^0.10",
"queue-interop/amqp-interop": "^0.8",
"queue-interop/queue-interop": "^0.8",
diff --git a/pkg/sns/.github/workflows/ci.yml b/pkg/sns/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd2ae7f2d
--- /dev/null
+++ b/pkg/sns/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/sns/.travis.yml b/pkg/sns/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/sns/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/sns/README.md b/pkg/sns/README.md
index 62fa9986c..bfcfbce27 100644
--- a/pkg/sns/README.md
+++ b/pkg/sns/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Amazon SNS Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/sns)
+[](https://github.com/php-enqueue/sns/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/sns)
[](https://packagist.org/packages/enqueue/sns)
diff --git a/pkg/sns/SnsConnectionFactory.php b/pkg/sns/SnsConnectionFactory.php
index ffef39803..b3efd90d7 100644
--- a/pkg/sns/SnsConnectionFactory.php
+++ b/pkg/sns/SnsConnectionFactory.php
@@ -51,19 +51,19 @@ public function __construct($config = 'sns:')
if (empty($config)) {
$config = [];
- } elseif (is_string($config)) {
+ } elseif (\is_string($config)) {
$config = $this->parseDsn($config);
- } elseif (is_array($config)) {
- if (array_key_exists('dsn', $config)) {
- $config = array_replace_recursive($config, $this->parseDsn($config['dsn']));
+ } elseif (\is_array($config)) {
+ if (\array_key_exists('dsn', $config)) {
+ $config = \array_replace_recursive($config, $this->parseDsn($config['dsn']));
unset($config['dsn']);
}
} else {
- throw new \LogicException(sprintf('The config must be either an array of options, a DSN string, null or instance of %s', AwsSnsClient::class));
+ throw new \LogicException(\sprintf('The config must be either an array of options, a DSN string, null or instance of %s', AwsSnsClient::class));
}
- $this->config = array_replace($this->defaultConfig(), $config);
+ $this->config = \array_replace($this->defaultConfig(), $config);
}
/**
@@ -89,6 +89,10 @@ private function establishConnection(): SnsClient
$config['endpoint'] = $this->config['endpoint'];
}
+ if (isset($this->config['profile'])) {
+ $config['profile'] = $this->config['profile'];
+ }
+
if ($this->config['key'] && $this->config['secret']) {
$config['credentials'] = [
'key' => $this->config['key'],
@@ -117,13 +121,10 @@ private function parseDsn(string $dsn): array
$dsn = Dsn::parseFirst($dsn);
if ('sns' !== $dsn->getSchemeProtocol()) {
- throw new \LogicException(sprintf(
- 'The given scheme protocol "%s" is not supported. It must be "sns"',
- $dsn->getSchemeProtocol()
- ));
+ throw new \LogicException(\sprintf('The given scheme protocol "%s" is not supported. It must be "sns"', $dsn->getSchemeProtocol()));
}
- return array_filter(array_replace($dsn->getQuery(), [
+ return \array_filter(\array_replace($dsn->getQuery(), [
'key' => $dsn->getString('key'),
'secret' => $dsn->getString('secret'),
'token' => $dsn->getString('token'),
diff --git a/pkg/sns/composer.json b/pkg/sns/composer.json
index cde4dab79..25fd1a345 100644
--- a/pkg/sns/composer.json
+++ b/pkg/sns/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
"enqueue/dsn": "^0.10",
"aws/aws-sdk-php": "~3.26"
diff --git a/pkg/snsqs/.github/workflows/ci.yml b/pkg/snsqs/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd2ae7f2d
--- /dev/null
+++ b/pkg/snsqs/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/snsqs/.travis.yml b/pkg/snsqs/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/snsqs/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/snsqs/README.md b/pkg/snsqs/README.md
index ec5151f01..15d6d979e 100644
--- a/pkg/snsqs/README.md
+++ b/pkg/snsqs/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Amazon SNS-SQS Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/snsqs)
+[](https://github.com/php-enqueue/snsqs/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/snsqs)
[](https://packagist.org/packages/enqueue/snsqs)
diff --git a/pkg/snsqs/composer.json b/pkg/snsqs/composer.json
index ddf8d80cf..ec52b67bc 100644
--- a/pkg/snsqs/composer.json
+++ b/pkg/snsqs/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
"enqueue/dsn": "^0.10",
"enqueue/sns": "^0.10",
diff --git a/pkg/sqs/.github/workflows/ci.yml b/pkg/sqs/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd2ae7f2d
--- /dev/null
+++ b/pkg/sqs/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/sqs/.travis.yml b/pkg/sqs/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/sqs/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/sqs/README.md b/pkg/sqs/README.md
index bcc1e83ac..1d173345b 100644
--- a/pkg/sqs/README.md
+++ b/pkg/sqs/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Amazon SQS Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/sqs)
+[](https://github.com/php-enqueue/sqs/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/sqs)
[](https://packagist.org/packages/enqueue/sqs)
diff --git a/pkg/sqs/composer.json b/pkg/sqs/composer.json
index 1ca52ab41..96dc89252 100644
--- a/pkg/sqs/composer.json
+++ b/pkg/sqs/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
"enqueue/dsn": "^0.10",
"aws/aws-sdk-php": "~3.26"
diff --git a/pkg/stomp/.github/workflows/ci.yml b/pkg/stomp/.github/workflows/ci.yml
new file mode 100644
index 000000000..fd2ae7f2d
--- /dev/null
+++ b/pkg/stomp/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+ with:
+ composer-options: "--prefer-source"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/stomp/.travis.yml b/pkg/stomp/.travis.yml
deleted file mode 100644
index ae8b10d3d..000000000
--- a/pkg/stomp/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install --prefer-source
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/stomp/README.md b/pkg/stomp/README.md
index 5fbe0d19d..758c7a43b 100644
--- a/pkg/stomp/README.md
+++ b/pkg/stomp/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# STOMP Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/stomp)
+[](https://github.com/php-enqueue/stomp/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/stomp)
[](https://packagist.org/packages/enqueue/stomp)
diff --git a/pkg/stomp/composer.json b/pkg/stomp/composer.json
index 0509d34b0..301631f43 100644
--- a/pkg/stomp/composer.json
+++ b/pkg/stomp/composer.json
@@ -5,14 +5,20 @@
"keywords": ["messaging", "queue", "stomp"],
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
+ "repositories": [
+ {
+ "type": "git",
+ "url": "https://github.com/andrewmy/php-rabbitmq-management-api.git"
+ }
+ ],
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"enqueue/dsn": "^0.10",
- "stomp-php/stomp-php": "^4",
+ "stomp-php/stomp-php": "^4.0|^5.0",
"queue-interop/queue-interop": "^0.8",
- "php-http/guzzle6-adapter": "^1.1",
- "php-http/client-common": "^1.7@dev",
- "richardfullmer/rabbitmq-management-api": "^2.0"
+ "php-http/guzzle7-adapter": "^0.1.1",
+ "php-http/client-common": "^2.2.1",
+ "richardfullmer/rabbitmq-management-api": "^2.1.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
diff --git a/pkg/wamp/.github/workflows/ci.yml b/pkg/wamp/.github/workflows/ci.yml
new file mode 100644
index 000000000..237a49da1
--- /dev/null
+++ b/pkg/wamp/.github/workflows/ci.yml
@@ -0,0 +1,27 @@
+name: CI
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0']
+
+ name: PHP ${{ matrix.php }} tests
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ coverage: none
+
+ - uses: "ramsey/composer-install@v1"
+
+ - run: vendor/bin/phpunit --exlude-group=functional
diff --git a/pkg/wamp/.travis.yml b/pkg/wamp/.travis.yml
deleted file mode 100644
index 02ba7238b..000000000
--- a/pkg/wamp/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-sudo: false
-
-git:
- depth: 10
-
-language: php
-
-php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-install:
- - composer self-update
- - composer install
-
-script:
- - vendor/bin/phpunit --exclude-group=functional
diff --git a/pkg/wamp/README.md b/pkg/wamp/README.md
index 67f5c9cef..04d0fdb5c 100644
--- a/pkg/wamp/README.md
+++ b/pkg/wamp/README.md
@@ -10,7 +10,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made
# Web Application Messaging Protocol (WAMP) Transport
[](https://gitter.im/php-enqueue/Lobby)
-[](https://travis-ci.org/php-enqueue/wamp)
+[](https://github.com/php-enqueue/wamp/actions?query=workflow%3ACI)
[](https://packagist.org/packages/enqueue/wamp)
[](https://packagist.org/packages/enqueue/wamp)
diff --git a/pkg/wamp/composer.json b/pkg/wamp/composer.json
index f868b00eb..1ad6b5110 100644
--- a/pkg/wamp/composer.json
+++ b/pkg/wamp/composer.json
@@ -6,7 +6,7 @@
"homepage": "https://enqueue.forma-pro.com/",
"license": "MIT",
"require": {
- "php": "^7.3",
+ "php": "^7.3|^8.0",
"queue-interop/queue-interop": "^0.8",
"enqueue/dsn": "^0.10",
"thruway/client": "^0.5.0",