Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 the same command twice, we clear this initial noise out of the way so that second printLineCoverage can run cleanly.
- Loading branch information