You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub workflow: Run harmless gradlew command due to warnings
We have a workflow job which runs:
./gradlew -q printLineCoverage
which should ONLY print out a number (e.g. 99.7)
but unfortunately the Android plugin spams a bunch of noise on
first run that we don't care about (that's why we pass in the
`-q` option). This is causing the
"COVERAGE=(./gradlew -q printLineCoverage)>>GITHUB_ENV" action
to fail.
The output looks like:
```
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
Checking the license for package Android SDK Platform-Tools in /usr/local/lib/android/sdk/licenses
License for package Android SDK Platform-Tools accepted.
Preparing "Install Android SDK Platform-Tools v.35.0.2".
"Install Android SDK Platform-Tools v.35.0.2" ready.
Installing Android SDK Platform-Tools in /usr/local/lib/android/sdk/platform-tools
"Install Android SDK Platform-Tools v.35.0.2" complete.
"Install Android SDK Platform-Tools v.35.0.2" finished.
99.7
```
By running a harmless Gradle command first, we clear this initial
noise out of the way so that printLineCoverage can run cleanly.
0 commit comments