Configure services additionally required by the master branch
This commit is contained in:
parent
7e8d87bd48
commit
dc7ac57a3c
58
.github/workflows/tests.yml
vendored
58
.github/workflows/tests.yml
vendored
@ -40,19 +40,69 @@ jobs:
|
||||
image: rabbitmq:3.8.3
|
||||
ports:
|
||||
- 5672:5672
|
||||
mongodb:
|
||||
image: mongo
|
||||
ports:
|
||||
- 27017:27017
|
||||
couchbase:
|
||||
image: couchbase:6.5.1
|
||||
ports:
|
||||
- 8091:8091
|
||||
- 8092:8092
|
||||
- 8093:8093
|
||||
- 8094:8094
|
||||
- 11210:11210
|
||||
sqs:
|
||||
image: asyncaws/testing-sqs
|
||||
ports:
|
||||
- 9494:9494
|
||||
zookeeper:
|
||||
image: wurstmeister/zookeeper:3.4.6
|
||||
kafka:
|
||||
image: wurstmeister/kafka:2.12-2.4.1
|
||||
ports:
|
||||
- 9092:9092
|
||||
env:
|
||||
KAFKA_AUTO_CREATE_TOPICS_ENABLE: false
|
||||
KAFKA_CREATE_TOPICS: 'test-topic:1:1:compact'
|
||||
KAFKA_ADVERTISED_HOST_NAME: localhost
|
||||
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
|
||||
KAFKA_ADVERTISED_PORT: 9092
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
echo "::group::add apt sources"
|
||||
sudo wget -O - http://packages.couchbase.com/ubuntu/couchbase.key | sudo apt-key add -
|
||||
echo "deb http://packages.couchbase.com/ubuntu bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::apt-get update"
|
||||
sudo apt-get update
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::install tools & libraries"
|
||||
sudo apt-get install libcouchbase-dev librdkafka-dev
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: Configure Couchbase
|
||||
run: |
|
||||
curl -s -u 'username=Administrator&password=111111' -X POST http://localhost:8091/node/controller/setupServices -d 'services=kv%2Cn1ql%2Cindex%2Cfts'
|
||||
curl -s -X POST http://localhost:8091/settings/web -d 'username=Administrator&password=111111&port=SAME'
|
||||
curl -s -u Administrator:111111 -X POST http://localhost:8091/pools/default/buckets -d 'ramQuotaMB=100&bucketType=ephemeral&name=cache'
|
||||
curl -s -u Administrator:111111 -X POST http://localhost:8091/pools/default -d 'memoryQuota=256'
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
coverage: "none"
|
||||
extensions: "memcached,redis,xsl"
|
||||
extensions: "json,couchbase,memcached,mongodb,redis,rdkafka,xsl"
|
||||
ini-values: "memory_limit=-1"
|
||||
php-version: "${{ matrix.php }}"
|
||||
tools: flex
|
||||
tools: flex,pecl
|
||||
|
||||
- name: Configure composer
|
||||
run: |
|
||||
@ -89,7 +139,11 @@ jobs:
|
||||
REDIS_CLUSTER_HOSTS: 'localhost:7000 localhost:7001 localhost:7002 localhost:7003 localhost:7004 localhost:7005'
|
||||
MESSENGER_REDIS_DSN: redis://127.0.0.1:7006/messages
|
||||
MESSENGER_AMQP_DSN: amqp://localhost/%2f/messages
|
||||
MESSENGER_SQS_DSN: "sqs://localhost:9494/messages?sslmode=disable&poll_timeout=0.01"
|
||||
MESSENGER_SQS_FIFO_QUEUE_DSN: "sqs://localhost:9494/messages.fifo?sslmode=disable&poll_timeout=0.01"
|
||||
MEMCACHED_HOST: localhost
|
||||
MONGODB_HOST: localhost
|
||||
KAFKA_BROKER: localhost:9092
|
||||
|
||||
- name: Run HTTP push tests
|
||||
if: matrix.php == '7.4'
|
||||
|
@ -17,6 +17,7 @@ use Symfony\Component\Cache\Adapter\CouchbaseBucketAdapter;
|
||||
|
||||
/**
|
||||
* @requires extension couchbase 2.6.0
|
||||
* @group integration
|
||||
*
|
||||
* @author Antonio Jose Cerezo Aranda <aj.cerezo@gmail.com>
|
||||
*/
|
||||
|
@ -23,6 +23,7 @@ use Symfony\Component\Lock\Store\MongoDbStore;
|
||||
* @author Joe Bennett <joe@assimtech.com>
|
||||
*
|
||||
* @requires function \MongoDB\Client::__construct
|
||||
* @group integration
|
||||
*/
|
||||
class MongoDbStoreTest extends AbstractStoreTest
|
||||
{
|
||||
|
@ -16,6 +16,9 @@ use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Messenger\Bridge\AmazonSqs\Tests\Fixtures\DummyMessage;
|
||||
use Symfony\Component\Messenger\Bridge\AmazonSqs\Transport\Connection;
|
||||
|
||||
/**
|
||||
* @group integration
|
||||
*/
|
||||
class AmazonSqsIntegrationTest extends TestCase
|
||||
{
|
||||
public function testConnectionSendToFifoQueueAndGet(): void
|
||||
|
@ -20,6 +20,7 @@ use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
|
||||
|
||||
/**
|
||||
* @requires extension rdkafka
|
||||
* @group integration
|
||||
*/
|
||||
class RdKafkaCasterTest extends TestCase
|
||||
{
|
||||
|
Reference in New Issue
Block a user