You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@any23.apache.org by le...@apache.org on 2022/01/12 17:22:40 UTC
[any23] branch master updated: ANY23-546 Implement sonarcloud.io in Any23 continuous integration (#250)
This is an automated email from the ASF dual-hosted git repository.
lewismc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/any23.git
The following commit(s) were added to refs/heads/master by this push:
new 9c78d24 ANY23-546 Implement sonarcloud.io in Any23 continuous integration (#250)
9c78d24 is described below
commit 9c78d2437bcfead214b00e2fc05cb2573337a901
Author: Lewis John McGibbney <le...@gmail.com>
AuthorDate: Wed Jan 12 09:22:35 2022 -0800
ANY23-546 Implement sonarcloud.io in Any23 continuous integration (#250)
* ANY23-546 Implement sonarcloud.io in Any23 continuous integration
---
.github/workflows/master-build.yml | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/master-build.yml b/.github/workflows/master-build.yml
index 0901082..abc362f 100644
--- a/.github/workflows/master-build.yml
+++ b/.github/workflows/master-build.yml
@@ -19,7 +19,6 @@ on:
push:
branches: [ master ]
pull_request:
- branches: [ master ]
types: [opened, synchronize, reopened]
jobs:
@@ -49,8 +48,16 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- - name: Build and analyze
+ - name: Format, Build and Generate Javadocs
+ run: mvn -B clean formatter:validate install javadoc:aggregate
+ - name: Analyze with SonarCloud
+ #if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
+ run: >
+ mvn sonar:sonar
+ -Dsonar.projectKey=apache_any23
+ -Dsonar.organization=apache
+ -Dsonar.host.url=https://sonarcloud.io
+ -Dsonar.login=$SONAR_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- run: mvn -B clean formatter:validate verify javadoc:aggregate org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_any23
\ No newline at end of file
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
\ No newline at end of file