This should optimize LRU cache eviction so main and branches always have
reasonably fresh gradle caches and main does not ever get evicted, since
branches have independent caches and would otherwise fill up 10GB cache limit
Note that `--daemon` is specified as the default for this action is no daemon,
that is correct for long-lived runners to avoid cross-build contamination, but
on GitHub Hosted Runners (which we use) we are clean each run, so this is a small
optimization to share gradle between steps: https://github.com/gradle/gradle-build-action/issues/113#issuecomment-1003204780
Also adds an emulator run benchmarking suite that works in combo with matrix
If branch builds result in cache upload of emulator files the cache files there will
need to be scoped for just changes on the snapshot file(s)
* feat(prettier-check): added .prettierrc + workflow
* feat(prettier-check): ran prettier + .prettierignore
* feat(prettier-check): check if npx is installed
pre-commit now skips Prettier check if `npx` is not present.
Lint did not work on `androidTest` if set to release
I have confirmed that `lintPlayDebug` will lint:
* main
* test
* androidTest
It will not lint:
* api:main
* api:test
Release and debug lint are now equivalent.
Cause of equivalence: fcf111c329
We could use `gradlew lint` to lint everything, but this runs under the
Amazon Debug Flavor, which is unusual in CI
Fixes 10322
Re-verified, java.io.File.toPath is only available API26+, and the library has
not changed their compatibility, so we're still waiting on this one, just sliding the version range
here
Closes#9257
* Bump protobuf-java from 3.17.0 to 3.17.1
* build(deps): bump annotations from 21.0.0 to 21.0.1
* Bump protobuf-java from 3.17.1 to 3.17.2
* Bump recyclerview from 1.2.0 to 1.2.1
* build(deps): bump ucrop from 2.2.6 to 2.2.7
* chore(rust): dependabot should ignore backend verisons
* Bump mockito-inline from 3.10.0 to 3.11.0
* Bump protobuf-java from 3.17.2 to 3.17.3
* Bump mockito-inline from 3.11.0 to 3.11.1
* Bump fragment from 1.3.4 to 1.3.5
* Bumps fragment from 1.3.4 to 1.3.5.
* Bump fragment-testing from 1.3.4 to 1.3.5
* Bump mockito-inline from 3.11.1 to 3.11.2
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The conversion to variants in #8151 meant AnkiDroid did not have a valid
lintRelease target anymore so it was not running in CI as expected
Using the variant-specific name makes it work, and splitting the checks into
specific ones for each sub-module should make it obvious in the future if any
further variant-related work happens
Fixes#8669
- java needs a distribution now, "adopt" is best in my opinion
- cancel-workflow-action can kill all_but_latest now (I helped on that one, nice)
- nothing else that was breaking or worth using feature-wise
sdk tools are still bundled, but they are no longer updated and they
are not JDK11 compatibile
command tools are updated, and should be JDK11 compatible
Github Runners ubuntu flavor just switched to 11 as the default
JDK11 will be required for the next gradle version and is supported now,
so best to roll forward instead of pinning JDK8 longer
codecov has problems determining relevant SHAs with fetch-depth 1
fetch-depth 1 is the default for the github checkout action so we
must specify one
they recommend fetch-depth 0 (all changes, expensive) or > 1, here
I specify 50 because we don't have PRs with more than 50 commits,
they never survive review without being broken apart