This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.1 by this push:
new 882e5ac5b0 [FAQ, CI] Apply Dubbo Error Code Inspector in GitHub
Actions (#10680)
882e5ac5b0 is described below
commit 882e5ac5b0825d87d50f2c9cd5a0083ddce36deb
Author: Andy Cheung <[email protected]>
AuthorDate: Thu Oct 20 15:06:25 2022 +0800
[FAQ, CI] Apply Dubbo Error Code Inspector in GitHub Actions (#10680)
---
.github/workflows/build-and-test-3.1.yml | 36 ++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/.github/workflows/build-and-test-3.1.yml
b/.github/workflows/build-and-test-3.1.yml
index f8c437039e..94a7fa319b 100644
--- a/.github/workflows/build-and-test-3.1.yml
+++ b/.github/workflows/build-and-test-3.1.yml
@@ -290,3 +290,39 @@ jobs:
path: test/jobs/
- name: "Merge test result"
run: ./test/scripts/merge-test-results.sh
+
+ error-code-inspecting:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ path: "./dubbo"
+
+ - uses: actions/checkout@v2
+ with:
+ repository: 'apache/dubbo-test-tools'
+ ref: main
+ path: "./dubbo-test-tools"
+
+ - name: "Set up JDK 17"
+ uses: actions/setup-java@v1
+ with:
+ java-version: 17
+
+ - name: "Compile Dubbo (Linux)"
+ run: |
+ cd ${{ github.workspace }}/dubbo
+ ./mvnw --batch-mode --no-snapshot-updates -e --no-transfer-progress
--fail-fast -T 2C clean install -DskipTests=true -DskipIntegrationTests=true
-Dcheckstyle.skip=true -Dcheckstyle_unix.skip=true -Drat.skip=true
-Dmaven.javadoc.skip=true
+
+ - name: "Run Error Code Inspecting"
+ env:
+ "dubbo.eci.report-as-error": false
+ run: |
+ cd ${{ github.workspace
}}/dubbo-test-tools/dubbo-error-code-inspector
+ ../mvnw --batch-mode --no-snapshot-updates -e --no-transfer-progress
--fail-fast -T 2C package exec:java -Dmaven.test.skip=true
-Dmaven.test.skip.exec=true -Ddubbo.eci.path=${{ github.workspace }}/dubbo
+
+ - name: "Upload error code inspection result"
+ uses: actions/upload-artifact@v2
+ with:
+ name: "error-inspection-result"
+ path: ${{ github.workspace
}}/dubbo-test-tools/dubbo-error-code-inspector/error-inspection-result.txt