From 2116a71d586f642eb69ff0121be0630f8ae21fa1 Mon Sep 17 00:00:00 2001 From: Havret Date: Sun, 10 Mar 2024 23:06:48 +0100 Subject: [PATCH] Run Artemis as Part of CI --- .github/workflows/build.yml | 3 + test/artemis/broker.xml | 272 ++++++++++++++++++++++++++++++++ test/artemis/docker-compose.yml | 10 ++ 3 files changed, 285 insertions(+) create mode 100644 test/artemis/broker.xml create mode 100644 test/artemis/docker-compose.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7d9843..8fa8e85 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,9 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: "8.0.x" + - name: Run ActiveMQ Artemis + run: docker-compose up -V -d + working-directory: ./test/artemis - name: Build with dotnet run: dotnet build --configuration Release - name: Test with dotnet diff --git a/test/artemis/broker.xml b/test/artemis/broker.xml new file mode 100644 index 0000000..0f91f19 --- /dev/null +++ b/test/artemis/broker.xml @@ -0,0 +1,272 @@ + + + + + + + + 0.0.0.0 + + + true + + + ASYNCIO + + data/paging + + data/bindings + + data/journal + + data/large-messages + + + + true + + 2 + + 10 + + 4096 + + 10M + + + 520000 + + + + 4096 + + + + + + + + + + + + + + + + + + + + + 5000 + + + 90 + + + true + + 120000 + + 60000 + + HALT + + 1096000 + + 1000 + + 100 + + + + + + + + + + + + + + + + tcp://0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;amqpMinLargeMessageSize=102400;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpDuplicateDetection=true;supportAdvisory=false;suppressInternalManagementObjects=false + + + tcp://0.0.0.0:5672?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=AMQP;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpMinLargeMessageSize=102400;amqpDuplicateDetection=true + + + tcp://0.0.0.0:61613?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=STOMP;useEpoll=true + + + tcp://0.0.0.0:5445?anycastPrefix=jms.queue.;multicastPrefix=jms.topic.;protocols=HORNETQ,STOMP;useEpoll=true + + + tcp://0.0.0.0:1883?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=MQTT;useEpoll=true + + tcp://0.0.0.0:80?protocols=AMQP + + + + + + + + + + + + + + + + + + + + + true + + + + + DLQ + ExpiryQueue + 0 + + -1 + 10 + PAGE + true + true + true + true + + + 1000 + BLOCK + + + + DLQ + ExpiryQueue + 0 + + -1 + 10 + PAGE + true + true + true + true + false + false + false + + + + +
+ + + +
+
+ + + +
+
+ + + true + + +
+ +
+ + + +
+
\ No newline at end of file diff --git a/test/artemis/docker-compose.yml b/test/artemis/docker-compose.yml new file mode 100644 index 0000000..149b229 --- /dev/null +++ b/test/artemis/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: + activemq-artemis: + container_name: activemq-artemis + image: havret/dotnet-activemq-artemis-client-test-broker:2.30.0 + ports: + - 8161:8161 + - 5445:5445 + volumes: + - ./broker.xml:/artemis/amq/etc/broker.xml