Skip to content

Commit cc737b8

Browse files
authored
Update CI workflow to run tests for each profile
Refactor test execution to run individual profiles separately.
1 parent ca99632 commit cc737b8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/loader-ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,12 @@ jobs:
7474
- name: Run test
7575
run: |
7676
cd hugegraph-loader && ls
77-
# 运行测试,如果任何一个模式失败,就打印日志文件并退出
78-
mvn test -P unit,file,hdfs,jdbc,kafka -ntp || (echo "--- DETAILED LOADER LOGS ---" && find . -name "hugegraph-loader.log" | xargs cat && exit 1)
79-
77+
mvn test -P unit -ntp
78+
mvn test -P file
79+
mvn test -P hdfs
80+
mvn test -P jdbc
81+
mvn test -P kafka
82+
8083
- name: Upload Test Reports
8184
if: failure()
8285
uses: actions/upload-artifact@v4
@@ -86,7 +89,6 @@ jobs:
8689
**/target/surefire-reports/*.txt
8790
**/target/surefire-reports/*.xml
8891
**/target/failsafe-reports/*.txt
89-
**/hugegraph-loader/logs/*.log
9092
9193
- name: Upload coverage to Codecov
9294
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)