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

hyunkun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new c9061bf  add GitHub action (#124)
c9061bf is described below

commit c9061bf1f70fd6d9a2c8133cecb14a1b191e499b
Author: Huang YunKun <[email protected]>
AuthorDate: Sat Oct 12 17:03:29 2019 +0800

    add GitHub action (#124)
---
 .github/workflows/ci.yml    | 42 ++++++++++++++++++++++++++++++++++++++++++
 .github/workflows/maven.yml | 17 -----------------
 2 files changed, 42 insertions(+), 17 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..fd8ca85
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: CI
+
+on: [push, pull_request]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v1
+      - name: Set up JDK 1.8
+        uses: actions/setup-java@v1
+        with:
+          java-version: 1.8
+      - name: Build with Maven
+        run: ./mvnw  --settings .mvn/settings.xml clean package
+
+  integration:
+    runs-on: ubuntu-latest
+    needs: build
+    env:
+      DUBBO_VERSION: 2.7.5-SNAPSHOT
+    strategy:
+      matrix:
+        javaVersion: [1.8, 11]
+        include:
+          - javaVersion: 1.8
+            dockerImage: openjdk:8
+          - javaVersion: 11
+            dockerImage: openjdk:11
+
+    steps:
+      - uses: actions/checkout@v1
+      - name: Set up JDK ${{ matrix.javaVersion }}
+        uses: actions/setup-java@v1
+        with:
+          java-version: ${{ matrix.javaVersion }}
+      - name: Run integration test
+        run: |
+          ./mvnw -U --batch-mode --no-transfer-progress --settings 
.mvn/settings.xml clean install -pl dubbo-maven-address-plugin 
-Ddubbo.version=$DUBBO_VERSION
+          ./mvnw -U --batch-mode --no-transfer-progress --settings 
.mvn/settings.xml clean verify -Pdubbo-integration-test -Djava-image.name=${{ 
matrix.dockerImage }} -Ddubbo.version=$DUBBO_VERSION
+
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
deleted file mode 100644
index 14c70e1..0000000
--- a/.github/workflows/maven.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-name: Java CI
-
-on: [push]
-
-jobs:
-  build:
-
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v1
-      - name: Set up JDK 1.8
-        uses: actions/setup-java@v1
-        with:
-          java-version: 1.8
-      - name: Build with Maven
-        run: ./mvnw  --settings .mvn/settings.xml clean package


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to