diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 207bca0a..16bb2463 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,12 +34,23 @@ jobs:
cache: 'maven'
- name: Verify build
+ if: matrix.os != 'ubuntu-latest'
run: >
./mvnw clean verify
--batch-mode
--update-snapshots
--no-transfer-progress
+ - name: Verify build with Sonar
+ if: matrix.os == 'ubuntu-latest'
+ run: >
+ ./mvnw clean verify javadoc:javadoc-no-fork sonar:sonar -P coverage
+ --batch-mode
+ --update-snapshots
+ --no-transfer-progress
+ env:
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+
- name: Stage build results
run: mkdir staging-${{ matrix.os }} && cp **/target/*.jar staging-${{ matrix.os }}/
@@ -48,7 +59,7 @@ jobs:
with:
name: Build Results
path: staging-*/
-
+
deploy-snapshot:
name: Deploy snapshot
runs-on: ubuntu-latest
diff --git a/pom.xml b/pom.xml
index d831c46b..4827dbb5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,12 +44,16 @@
testutils
-
+
3.3
2.2.0
1.9.0
1.6.0
+
+ https://sonarcloud.io
+ vitruv-tools
+ vitruv-tools_Vitruv-DSLs