Skip to content

Merge pull request #25 from Learnathon-By-Geeky-Solutions/dev #17

Merge pull request #25 from Learnathon-By-Geeky-Solutions/dev

Merge pull request #25 from Learnathon-By-Geeky-Solutions/dev #17

Workflow file for this run

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 }}