This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-a2a.git


The following commit(s) were added to refs/heads/main by this push:
     new 655cad4  Add CI workflows
655cad4 is described below

commit 655cad4a599a66f2534e691219e38841ae2a813b
Author: RongtongJin <[email protected]>
AuthorDate: Fri Dec 26 17:42:55 2025 +0800

    Add CI workflows
---
 .github/workflows/maven.yaml         | 39 ++++++++++++++++++++++++++++++++++++
 .github/workflows/misspell_check.yml | 17 ++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
new file mode 100644
index 0000000..50131a8
--- /dev/null
+++ b/.github/workflows/maven.yaml
@@ -0,0 +1,39 @@
+name: Build and Run Tests by Maven
+on:
+  pull_request:
+    types: [opened, reopened, synchronize]
+  push:
+    branches: [main]
+
+jobs:
+  java_build:
+    name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        # see 
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
+        os: [ubuntu-latest]
+        jdk: [8]
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+      - name: Set up JDK ${{ matrix.jdk }}
+        uses: actions/setup-java@v4
+        with:
+          java-version: ${{ matrix.jdk }}
+          # See 
https://github.com/actions/setup-java?tab=readme-ov-file#supported-distributions
+          # AdoptOpenJDK got moved to Eclipse Temurin and won't be updated 
anymore.
+          distribution: "corretto"
+          cache: "maven"
+      - name: Build with Maven
+        run: mvn -B package --file pom.xml
+
+      - name: Upload JVM crash logs
+        if: failure()
+        uses: actions/upload-artifact@v4
+        with:
+          name: jvm-crash-logs
+          path: ${{ github.workspace }}/hs_err_pid*.log
+          if-no-files-found: ignore
+          retention-days: 1
diff --git a/.github/workflows/misspell_check.yml 
b/.github/workflows/misspell_check.yml
new file mode 100644
index 0000000..e71d49a
--- /dev/null
+++ b/.github/workflows/misspell_check.yml
@@ -0,0 +1,17 @@
+name: Misspell Check
+on:
+  pull_request:
+    types: [opened, reopened, synchronize]
+  push:
+    branches: [main]
+jobs:
+  misspell-check:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - name: Install misspell
+        run: |
+          curl -L -o ./install-misspell.sh 
https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
+          sh ./install-misspell.sh
+      - name: Run misspell
+        run: find . -type f -print0 | xargs -0 $HOME/bin/misspell -error -i 
transfered,derivate

Reply via email to