Skip to content

[WIP]add: add SonarCloud #226

[WIP]add: add SonarCloud

[WIP]add: add SonarCloud #226

Workflow file for this run

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