Skip to content

Commit

Permalink
Merge pull request #141 from vitruv-tools/sonar-analysis
Browse files Browse the repository at this point in the history
Enable (more detailed) SonarQube analysis and JavaDoc build in CI
  • Loading branch information
larsk21 authored Nov 29, 2024
2 parents ae9f70c + 03dab6a commit fddb5bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}/

Expand All @@ -48,7 +59,7 @@ jobs:
with:
name: Build Results
path: staging-*/

deploy-snapshot:
name: Deploy snapshot
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@
<module>testutils</module>
</modules>

<!-- Additional Repositories -->
<properties>
<!-- Additional Repositories -->
<repo.emf-compare.version>3.3</repo.emf-compare.version>
<repo.sdq-commons.version>2.2.0</repo.sdq-commons.version>
<repo.sdq-demo-metamodels.version>1.9.0</repo.sdq-demo-metamodels.version>
<repo.xannotations.version>1.6.0</repo.xannotations.version>
<!-- SonarQube configuration -->
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>vitruv-tools</sonar.organization>
<sonar.projectKey>vitruv-tools_Vitruv-DSLs</sonar.projectKey>
</properties>

<build>
Expand Down

0 comments on commit fddb5bc

Please sign in to comment.