add readme description #1
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
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 }} |