This is an automated email from the ASF dual-hosted git repository. havret pushed a commit to branch Housekeeping in repository https://gitbox.apache.org/repos/asf/activemq-nms-openwire.git
commit 6b638f5c97247313f99ed05ea8b7fef8c43ce479 Author: Havret <[email protected]> AuthorDate: Tue Aug 5 23:30:04 2025 +0200 NO-JIRA Configure CI --- .github/workflows/build.yml | 59 +++++++++++++++++++++++++++++++++++++++++++ test/nms-openwire-test.csproj | 2 +- 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2b56877 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,59 @@ +name: Build and Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-and-test: + runs-on: ubuntu-latest + + services: + activemq: + image: apache/activemq-artemis:latest + ports: + - 61616:61616 + - 8161:8161 + env: + ARTEMIS_USER: admin + ARTEMIS_PASSWORD: admin + options: >- + --health-cmd "curl -f http://localhost:8161/console || exit 1" + --health-interval 30s + --health-timeout 10s + --health-retries 5 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '9.0.x' + + - name: Wait for ActiveMQ Artemis to be ready + run: | + echo "Waiting for ActiveMQ Artemis to start..." + timeout 300 bash -c 'until curl -f http://localhost:8161/console; do sleep 5; done' + echo "ActiveMQ Artemis is ready!" + + - 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 + env: + ACTIVEMQ_BROKER_URL: tcp://localhost:61616 + + - name: Upload test results + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-results + path: TestResults/*.trx \ No newline at end of file diff --git a/test/nms-openwire-test.csproj b/test/nms-openwire-test.csproj index 7139e0c..0babc98 100644 --- a/test/nms-openwire-test.csproj +++ b/test/nms-openwire-test.csproj @@ -22,7 +22,7 @@ <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'"> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information, visit: https://activemq.apache.org/contact
