From a715d8c0c6da8f56513dba42fdc4ccbd82d1fb13 Mon Sep 17 00:00:00 2001 From: mawenbo Date: Fri, 6 Dec 2024 11:11:34 +0800 Subject: [PATCH] Update maven-ci.yml --- .github/workflows/maven-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index 739ead78c8..3aafc1ec09 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -17,5 +17,18 @@ jobs: java-version: ${{ matrix.java-version }} distribution: 'temurin' cache: 'maven' + - name: Filter Tests + run: | + read -r -a array <<< "$EXCLUDED_TEST_SERVICES" + for service in "${array[@]}"; do + service_test_dir="services/${service}/src/test" + if [ -d "$service_test_dir" ]; then + echo "ignore ${service} tests." + rm -rf "$service_test_dir" + fi + done + env: + EXCLUDED_TEST_SERVICES: ${{ vars.EXCLUDED_TEST_SERVICES }} + shell: bash - name: Maven CI run: mvn -U -B clean install