-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.15 KB
/
code-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}