Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code-analysis.yml #64

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
13 changes: 9 additions & 4 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ jobs:
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.2.1.4610-linux-x64.zip
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- name: Execute tests
run: |
flutter test --coverage
ls coverage/
run: flutter test --coverage
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: $HOME/.sonar/sonar-scanner-6.2.1.4610-linux-x64/bin/sonar-scanner -Dsonar.projectKey=fga-eps-mds_2024.2-ARANDU-APP -Dsonar.organization=fga-eps-mds-1 -Dsonar.sources=./lib -Dsonar.tests=./test -Dsonar.dart.lcov.reportPaths=./coverage/lcov.info
run: | #$HOME/.sonar/sonar-scanner-6.2.1.4610-linux-x64/bin/sonar-scanner -Dproject.settings=./sonar-project.properties
$HOME/.sonar/sonar-scanner-6.2.1.4610-linux-x64/bin/sonar-scanner \
-Dsonar.projectKey=fga-eps-mds_2024.2-ARANDU-APP \
-Dsonar.organization=fga-eps-mds-1 \
-Dsonar.sources=./lib \
-Dsonar.tests=./test \
-Dsonar.exclusions=**/test/**,**/*.g.dart \
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
Loading