You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/03/02 06:56:26 UTC

[GitHub] [servicecomb-pack] WillemJiang commented on a change in pull request #698: [SCB-2199] Add GitHub Actions workflows

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



##########
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:
       Why we do this if the tests are failed?




----------------------------------------------------------------
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:
users@infra.apache.org