sonar-flutter
sonar-flutter copied to clipboard
GitHub actions cannot start up flutter analyze
I have the plugin and flutter installed on the sever, but GitHub actions won't complete successfully.
stacktrace:
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:00.495s
ERROR: Error during SonarScanner execution
INFO: Final Memory: 25M/100M
org.buildobjects.process.StartupException: Could not startup process 'flutter analyze --no-fatal-warnings --no-fatal-infos'.
INFO: ------------------------------------------------------------------------
at org.buildobjects.process.Proc.
Yes exactly the same error happening for me.
Hi,
It seems that "flutter" command is not on path (or in current dir). How did you install flutter on the runner ?
Did you use flutter-action ? (https://github.com/marketplace/actions/flutter-action)
i did use flutter action, i'll add the build.yml
name: Build
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: actions/checkout@v3
- name: Install and set Flutter version
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run Flutter doctor
run: flutter doctor -v
- name: Sonar-scanner
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# # If you wish to fail your job when the Quality Gate is red, uncomment the
# # following lines. This would typically be used to fail a deployment.
- uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
try 0.5.1 works for me, not sure why tho.
https://github.com/insideapp-oss/sonar-flutter/releases/tag/0.5.1-SNAPSHOT
I've updated the plugin on the server to 0.5.1-snapshot, but for me, it gives the same error.
I've updated the plugin on the server to 0.5.1-snapshot, but for me, it gives the same error.
I get the same error as well
Hi,
It seems that "flutter" command is not on path (or in current dir). How did you install flutter on the runner ?
Did you use flutter-action ? (https://github.com/marketplace/actions/flutter-action)
On sonarqube I selected the option 'Upload project localy'. I get the same error as the author gets
Caused by: java.io.IOException: Cannot run program "flutter" (in directory "/github/workspace"): error=2, No such file or directory
It looks like the directory /github/workspace does not exist. I have the same issue (different setup but same no such file or directory found) and I still haven't found a solution to it.
EDIT: I didn't made available the intended artifacts. Doing that solved th eissue on my side.
This issue is stale because it has been open for 90 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.