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-openwire.git

commit e8d47e08d2d0cb72ef49e20d778f483c052e99f4
Author: Havret <[email protected]>
AuthorDate: Tue Aug 5 23:30:04 2025 +0200

    NO-JIRA Configure CI
---
 .github/workflows/build.yml   | 45 +++++++++++++++++++++++++++++++++++++++++++
 .gitignore                    |  3 ++-
 docker-compose.yml            | 15 +++++++++++++++
 test/nms-openwire-test.csproj | 25 ++----------------------
 4 files changed, 64 insertions(+), 24 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..6a8d729
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,45 @@
+name: Build and Test
+
+on:
+  push:
+    branches: [ main ]
+  pull_request:
+    branches: [ main ]
+
+jobs:
+  build-and-test:
+    runs-on: ubuntu-latest
+    
+    steps:
+    - name: Checkout code
+      uses: actions/checkout@v4
+      
+    - name: Setup .NET
+      uses: actions/setup-dotnet@v4
+      with:
+        dotnet-version: '9.0.x'
+        
+    - name: Start ActiveMQ with Docker Compose
+      run: docker compose up -d activemq
+        
+    - name: Restore dependencies
+      run: dotnet restore nms-openwire.sln
+      
+    - name: Build solution
+      run: dotnet build nms-openwire.sln --configuration Release --no-restore
+      
+    - name: Run tests
+      run: dotnet test test/nms-openwire-test.csproj --configuration Release 
--no-build --verbosity normal --logger trx --results-directory TestResults 
--filter "TestCategory!=Manual"
+      env:
+        NMSTestBroker: localhost
+        
+    - name: Upload test results
+      uses: actions/upload-artifact@v4
+      if: always()
+      with:
+        name: test-results
+        path: TestResults/*.trx
+        
+    - name: Stop ActiveMQ
+      if: always()
+      run: docker compose down
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 31429b5..045b997 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,4 +18,5 @@ nms.sln.startup.json
 build/
 package/
 nms.sln.DotSettings.user
-tools/
\ No newline at end of file
+tools/
+.DS_Store
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..e4679bc
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,15 @@
+services:
+  activemq:
+    image: apache/activemq-classic:latest
+    ports:
+      - "61616:61616"
+      - "8161:8161"
+    healthcheck:
+      test: ["CMD", "curl", "-f", "http://localhost:8161/admin/";]
+      interval: 30s
+      timeout: 10s
+      retries: 5
+      start_period: 60s
+    environment:
+      - ACTIVEMQ_ADMIN_LOGIN=admin
+      - ACTIVEMQ_ADMIN_PASSWORD=admin
diff --git a/test/nms-openwire-test.csproj b/test/nms-openwire-test.csproj
index 7139e0c..0095f77 100644
--- a/test/nms-openwire-test.csproj
+++ b/test/nms-openwire-test.csproj
@@ -4,25 +4,15 @@
     <RootNamespace>Apache.NMS.ActiveMQ.Test</RootNamespace>
     <AssemblyName>Apache.NMS.ActiveMQ.Test</AssemblyName>
     <ApplicationIcon />
-    <OutputType>Library</OutputType>
-    <StartupObject />
     <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
     <Company>Apache Software Foundation</Company>
     <Authors>Apache ActiveMQ</Authors>
     <Product>Apache NMS OpenWire Test</Product>
     <Description>Apache NMS (.Net Standard Messaging Library) Test 
Suite</Description>
-    <Copyright>Copyright (C) 2005-2023 Apache Software Foundation</Copyright>
-    <PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
-    
<PackageProjectUrl>https://activemq.apache.org/components/nms/</PackageProjectUrl>
-    <PackageIcon>activemq_logo_icon.png</PackageIcon>
-    
<RepositoryUrl>https://github.com/apache/activemq-nms-openwire</RepositoryUrl>
-    <RepositoryType>git</RepositoryType>
-    <PackageTags>apache;activemq;nms;api;net;test;messaging</PackageTags>
-    <Version>2.0.0</Version>
     <SignAssembly>true</SignAssembly>
     <AssemblyOriginatorKeyFile>NMSKey.snk</AssemblyOriginatorKeyFile>
     <LangVersion>8</LangVersion>
-    <TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
+    <TargetFramework>net9.0</TargetFramework>
   </PropertyGroup>
 
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@@ -40,11 +30,7 @@
     <PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
     <PackageReference Include="System.Data.SqlClient" Version="4.6.1" />
   </ItemGroup>
-
-  <ItemGroup Condition=" '$(TargetFramework)' == 'net462'">
-    <Reference Include="System.Web" />
-  </ItemGroup>
-
+  
   <ItemGroup>
     <ProjectReference Include="..\src\nms-openwire.csproj" />
   </ItemGroup>
@@ -55,13 +41,6 @@
     </Reference>
   </ItemGroup>
 
-  <ItemGroup>
-    <None Include="..\LICENSE.txt">
-      <Pack>True</Pack>
-      <PackagePath></PackagePath>
-    </None>
-  </ItemGroup>
-
   <ItemGroup>
     <None Update="nmsprovider-test.config">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to