You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ha...@apache.org on 2025/06/27 22:54:54 UTC
(activemq-nms-amqp) 02/02: NO-JIRA Run CI using github actions
This is an automated email from the ASF dual-hosted git repository.
havret pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-nms-amqp.git
commit fb00356fadf023b876068ac5951cdcc75cd9c36e
Author: Havret <h4...@gmail.com>
AuthorDate: Sat Jun 28 00:32:06 2025 +0200
NO-JIRA Run CI using github actions
---
.github/workflows/build.yml | 33 ++++++++++++++++++++++
.travis.yml | 7 -----
apache-nms-amqp.sln | 2 ++
appveyor.yml | 10 -------
.../Apache-NMS-AMQP-Interop-Test.csproj | 2 ++
test/docker-compose.yml | 7 +++++
6 files changed, 44 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..ea4ccf1
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,33 @@
+name: .NET Build and Test
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ env:
+ NMS_AMQP_TEST_CU: "artemis"
+ NMS_AMQP_TEST_CPWD: "artemis"
+ NMS_AMQP_TEST_URI: "amqp://localhost:5672"
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ - name: Run ActiveMQ Artemis
+ run: docker compose up -V -d
+ working-directory: ./test
+ - name: Setup .NET 9
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '9.0.x'
+ - name: Restore dependencies
+ run: dotnet restore apache-nms-amqp.sln
+
+ - name: Build
+ run: dotnet build apache-nms-amqp.sln --configuration Release --no-restore
+
+ - name: Test
+ run: dotnet test apache-nms-amqp.sln --configuration Release --no-build --verbosity normal
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 7027cec..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: csharp
-solution: apache-nms-amqp.sln
-mono: none
-dotnet: 2.1
-script:
- - dotnet build -p:AppTargetFramework=netcoreapp2.1 -c Release
- - dotnet test ./test/Apache-NMS-AMQP-Test/Apache-NMS-AMQP-Test.csproj -f netcoreapp2.1 -c Release --filter Category!=Windows
\ No newline at end of file
diff --git a/apache-nms-amqp.sln b/apache-nms-amqp.sln
index 21a06ef..e3d6ece 100644
--- a/apache-nms-amqp.sln
+++ b/apache-nms-amqp.sln
@@ -30,6 +30,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{54150DEF
package.ps1 = package.ps1
README.md = README.md
LICENSE.txt = LICENSE.txt
+ test\docker-compose.yml = test\docker-compose.yml
+ .github\workflows\build.yml = .github\workflows\build.yml
EndProjectSection
EndProject
Global
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index f8c0bb4..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-image: Visual Studio 2019
-configuration: Release
-test:
- assemblies:
- - '**\NMS.AMQP.Test.dll'
-before_build:
- - cmd: dotnet --version
- - cmd: dotnet restore apache-nms-amqp.sln
-build_script:
- - cmd: dotnet build apache-nms-amqp.sln
\ No newline at end of file
diff --git a/test/Apache-NMS-AMQP-Interop-Test/Apache-NMS-AMQP-Interop-Test.csproj b/test/Apache-NMS-AMQP-Interop-Test/Apache-NMS-AMQP-Interop-Test.csproj
index b103422..6c23620 100644
--- a/test/Apache-NMS-AMQP-Interop-Test/Apache-NMS-AMQP-Interop-Test.csproj
+++ b/test/Apache-NMS-AMQP-Interop-Test/Apache-NMS-AMQP-Interop-Test.csproj
@@ -18,6 +18,7 @@ under the License.
<PropertyGroup>
<RootNamespace>NMS.AMQP.Test</RootNamespace>
<AssemblyName>NMS.AMQP.Interop.Test</AssemblyName>
+ <EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
</PropertyGroup>
<ItemGroup>
@@ -26,6 +27,7 @@ under the License.
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit.Console" Version="3.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
+ <PackageReference Include="System.Runtime.Serialization.Formatters" Version="9.0.6" />
</ItemGroup>
<ItemGroup>
diff --git a/test/docker-compose.yml b/test/docker-compose.yml
new file mode 100644
index 0000000..ba48e9c
--- /dev/null
+++ b/test/docker-compose.yml
@@ -0,0 +1,7 @@
+version: "3"
+services:
+ activemq-artemis:
+ container_name: activemq-artemis
+ image: havret/dotnet-activemq-artemis-client-test-broker:2.35.0
+ ports:
+ - 5672:5672
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact