-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from Adyen/config-sonarcloud
Enable Sonarcloud
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Sonarcloud Analysis" | ||
|
||
on: ["pull_request"] | ||
|
||
jobs: | ||
sonarcloud-analysis: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# Disabling shallow clone to improve relevancy of SonarCloud reporting | ||
fetch-depth: 0 | ||
|
||
- name: SonarCloud integration | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright Contributors to the ODPi Egeria project. | ||
|
||
# General settings | ||
sonar.organization=adyen | ||
sonar.projectKey=Adyen_adyen-postman | ||
|
||
# Path to sources | ||
#sonar.sources=. | ||
sonar.exclusions=src/__mocks__/**/* , src/typings/**/* , src/__tests__/**/* | ||
#sonar.inclusions= | ||
|
||
# Path to tests | ||
#sonar.tests= | ||
#sonar.test.exclusions= | ||
#sonar.test.inclusions= | ||
|
||
# Source encoding | ||
#sonar.sourceEncoding=UTF-8 | ||
|
||
# Exclusions for copy-paste detection | ||
#sonar.cpd.exclusions= |