-- issue fixes #14
This file contains hidden or 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: Flutter SonarCloud Analysis | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| sonarcloud-analysis: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Java 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| cache: true | |
| - name: Install dependencies | |
| run: | | |
| cd sohojogi | |
| flutter pub get | |
| # - name: Run tests with coverage | |
| # run: | | |
| # cd sohojogi | |
| # flutter test --coverage | |
| - name: SonarCloud Scan | |
| uses: SonarSource/sonarqube-scan-action@v5 | |
| with: | |
| projectBaseDir: sohojogi | |
| args: > | |
| -Dsonar.host.url=https://sonarcloud.io | |
| -Dsonar.projectKey=Learnathon-By-Geeky-Solutions_team-synergy | |
| -Dsonar.organization=learnathon-by-geeky-solutions | |
| -Dsonar.java.version=17 | |
| -Dsonar.verbose=true | |
| -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info | |
| -Dsonar.sources=lib | |
| -Dsonar.exclusions=**/*.g.dart,**/*.freezed.dart,**/generated/**,**/__generated__/**,**/mocks.dart,**/*.css | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |