WillemJiang commented on a change in pull request #698:
URL: https://github.com/apache/servicecomb-pack/pull/698#discussion_r585307066



##########
File path: .github/workflows/ci.yaml
##########
@@ -0,0 +1,86 @@
+name: CI
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  pull_request_test:
+    if: ${{ github.event.issue.pull_request }}
+    timeout-minutes: 180
+    runs-on: ubuntu-20.04
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up JDK 1.8
+        uses: actions/setup-java@v1
+        with:
+          java-version: 1.8
+          java-package: jdk
+          architecture: x64
+      - name: Cache local maven repository
+        uses: actions/cache@v2
+        with:
+          path: |
+            ~/.m2/repository/
+            !~/.m2/repository/org/apache/servicecomb
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2
+      - name: Show the first log message
+        run: git log -n1
+      - name: Build and Test and Install Docker
+        if: ${{ success() }}
+        run: ./mvnw clean install -B -Pdocker
+      - name: Upload unit test results when the previous step of a job fails
+        if: ${{ failure() }}

Review comment:
       It makes sense. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to