Skip to content

Commit

Permalink
Update maven-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mawenbo-huawei authored Dec 6, 2024
1 parent 4153554 commit a715d8c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a715d8c

Please sign in to comment.