-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abf484c
commit 1b9e216
Showing
4 changed files
with
78 additions
and
29 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 |
---|---|---|
@@ -1,29 +1,34 @@ | ||
name: 'sonarqube' | ||
|
||
on: push | ||
|
||
jobs: | ||
sonarQubeTrigger: | ||
name: Sonarqube-Trigger | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dart-lang/setup-dart@v1 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
flutter-version: 3.22.3 | ||
- run: flutter --version | ||
- name: Get Dependencies | ||
run: flutter pub get app && flutter pub get modules/domain && flutter pub get modules/data && flutter pub get modules/common | ||
- name: Analyze App | ||
#run analyze first | ||
run: flutter analyze | ||
- name: Setup Sonarqube Scanner | ||
uses: warchant/setup-sonar-scanner@v8 | ||
- name: Run Sonarqube Scanner | ||
run: sonar-scanner | ||
-Dsonar.token=${{ secrets.SONAR_TOKEN }} | ||
-Dsonar.host.url=${{ secrets.SONAR_URL }} | ||
#SonarQube Configuration | ||
# This is the sonarqube configuration, check readme for instructions | ||
#name: 'sonarqube' | ||
# | ||
#on: push | ||
# | ||
#jobs: | ||
# sonarQubeTrigger: | ||
# name: Sonarqube-Trigger | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: dart-lang/setup-dart@v1 | ||
# - name: Checkout code | ||
# uses: actions/checkout@v2 | ||
# - uses: webfactory/ssh-agent@v0.9.0 | ||
# with: | ||
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
# - name: Set up Flutter | ||
# uses: subosito/flutter-action@v2 | ||
# with: | ||
# channel: stable | ||
# flutter-version: 3.24.3 | ||
# - run: flutter --version | ||
# - name: Get Dependencies | ||
# run: flutter pub get app && flutter pub get modules/domain && flutter pub get modules/data && flutter pub get modules/common | ||
# - name: Analyze App | ||
# #run analyze first | ||
# run: flutter analyze | ||
# - name: Setup Sonarqube Scanner | ||
# uses: warchant/setup-sonar-scanner@v8 | ||
# - name: Run Sonarqube Scanner | ||
# run: sonar-scanner | ||
# -Dsonar.token=${{ secrets.SONAR_TOKEN }} | ||
# -Dsonar.host.url=${{ secrets.SONAR_URL }} |
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,21 @@ | ||
# This config file is for Sonarqube only | ||
name: Sonar | ||
description: Sonar | ||
|
||
publish_to: "none" | ||
version: 0.0.1+1 | ||
|
||
environment: | ||
sdk: '>=3.0.0 <4.0.0' | ||
|
||
dependencies: | ||
flutter: | ||
sdk: flutter | ||
|
||
dev_dependencies: | ||
flutter_test: | ||
sdk: flutter | ||
|
||
flutter: | ||
generate: true | ||
uses-material-design: true |
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,9 @@ | ||
sonar.projectKey=your-project-key | ||
sonar.projectName=your-project-name | ||
sonar.host.url=https://your-sonarqube-server.net | ||
sonar.projectVersion=1.0 | ||
sonar.sourceEncoding=UTF-8 | ||
# Main source directories | ||
sonar.sources=app/lib,modules/domain,modules/data,modules/common | ||
sonar.dart.exclusions=pubspec.yaml | ||
sonar.dart.analyzer.report.mode=LEGACY |