Skip to content

Update README.md

Update README.md #14

Workflow file for this run

name: Build for Sonar
on:
push:
branches:
- dev
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Up Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
- name: Set Up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.3'
channel: 'stable'
- name: Install Dependencies
run: flutter pub get
- name: Run Flutter Tests
run: flutter test --coverage
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v1
with:
args: >
-Dsonar.organization=fga-eps-mds-1
-Dsonar.projectKey=fga-eps-mds_2024.2-ARANDU-APP
-Dsonar.sources=./lib
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
env:
GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}