forked from huaweicloud/huaweicloud-sdk-java-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 994 Bytes
/
maven-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Maven CI
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
java-version: [8.0.352, 11.0.23, 17.0.11, 21.0.3]
steps:
- uses: actions/checkout@v4
- name: Set up Java ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
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