-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup CI/CD for sonarqube analysis (#20)
* [CHORES] Sonarquebe analysis * [CHORES] Add sonarqube properties * [REFACTOR] Remove unused variable on setup * [CHORES] Sonar scan on each branch * [CHORES] fix sonar branching * [CHORES] fix sonar branching * [CHORES] fix sonar branching * [CHORES] fix sonar branching * [CHORES] fix branch naming]
- Loading branch information
Showing
6 changed files
with
26 additions
and
25 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,18 @@ | ||
on: push | ||
name: Sonarqube | ||
jobs: | ||
sonarQubeTrigger: | ||
name: SonarQube Trigger | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
- name: SonarQube Scan | ||
uses: sonarsource/sonarqube-scan-action@master | ||
with: | ||
args: > | ||
-Dsonar.branch.name=${{ github.ref_name }} | ||
env: | ||
SONAR_TOKEN: "0052493ad45d69d2bc55d9bd64e9f8cc9da0bec0" | ||
SONAR_HOST_URL: "https://pmpl.cs.ui.ac.id/sonarqube" |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/vendor/ | ||
composer.lock |
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
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,2 @@ | ||
sonar.projectKey=ppl2022-d-uasoft_lms_module | ||
sonar.sources=src/ |
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
This file was deleted.
Oops, something went wrong.