-
Notifications
You must be signed in to change notification settings - Fork 1.9k
39 lines (34 loc) · 1.06 KB
/
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
35
36
37
name: Java CI
on: [ push,pull_request ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
java: [ 8, 11 ]
fail-fast: false
max-parallel: 2
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Test with Maven
run: |
directories=("at-sample" "saga-sample" "tcc-sample" "xa-sample")
for dir in "${directories[@]}"; do
for subdir in "$dir"/*; do
if [ -d "$subdir" ]; then
echo "Entering directory $subdir"
cd "$subdir"
mvn -B test
cd - > /dev/null
fi
done
done
- name: SonarCloud
run: mvn sonar:sonar -Pcoverage -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-seata-samples