From 02ba35ce6da9043e819c72287dcd553bb9c13fd5 Mon Sep 17 00:00:00 2001 From: Ken Liao Date: Tue, 30 Apr 2024 22:42:19 -0700 Subject: [PATCH] add github action for executing build --- .github/maven-settings.xml | 53 +++++++++++++++++++++++++++++++ .github/workflows/buildMaven.yml | 34 ++++++++++++++++++++ .github/workflows/fullTestRun.yml | 37 +++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 .github/maven-settings.xml create mode 100644 .github/workflows/buildMaven.yml create mode 100644 .github/workflows/fullTestRun.yml diff --git a/.github/maven-settings.xml b/.github/maven-settings.xml new file mode 100644 index 00000000000..1a341607cdc --- /dev/null +++ b/.github/maven-settings.xml @@ -0,0 +1,53 @@ + + + + + + google-mirror + + + google-maven-central + GCS Maven Central mirror + https://maven-central.storage-download.googleapis.com/maven2/ + + true + + + false + + + + + + google-maven-central + GCS Maven Central mirror + https://maven-central.storage-download.googleapis.com/maven2/ + + true + + + false + + + + + + + google-mirror + + \ No newline at end of file diff --git a/.github/workflows/buildMaven.yml b/.github/workflows/buildMaven.yml new file mode 100644 index 00000000000..452be393b75 --- /dev/null +++ b/.github/workflows/buildMaven.yml @@ -0,0 +1,34 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. +# See the NOTICE file distributed with this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing +# permissions and limitations under the License. + +name: Build ActiveMQ CRDR artifact + +on: + push: + branches: + - activemq-5.18.4-crdr + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'corretto' + cache: maven + - name: Build with Maven + run: mvn -s .github/maven-settings.xml -U -B -e clean install -DskipTests + - uses: actions/upload-artifact@v3 + with: + name: apache-activemq-${{ github.ref_name }} + path: assembly/target/apache-activemq-*-bin.tar.gz diff --git a/.github/workflows/fullTestRun.yml b/.github/workflows/fullTestRun.yml new file mode 100644 index 00000000000..dbdb126f164 --- /dev/null +++ b/.github/workflows/fullTestRun.yml @@ -0,0 +1,37 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. +# See the NOTICE file distributed with this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing +# permissions and limitations under the License. + +name: run full test suite on 5.18.4-crdr branch + +on: + push: + branches: + - activemq-5.18.4-crdr + workflow_dispatch: + +jobs: + full_test_suite: + name: Run full suite tests on new changes + runs-on: self-hosted + timeout-minutes: 720 + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'corretto' + cache: maven + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: 3.8.2 + - name: run full tests + run: mvn -s .github/maven-settings.xml -B -e -fae test -Dsurefire.rerunFailingTestsCount=3