0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Commit Graph

107 Commits

Author SHA1 Message Date
Mike Hardy
e262766700 test(ci): add tight timeout to gradle setup setup
Fixes #11301
2022-05-10 20:26:22 +01:00
Mike Hardy
3e91bdc13e perf(ci): use gradle-build-action w/main cache only on all workflows
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
2022-04-25 22:25:52 -05:00
Mike Hardy
b565d5b19c perf(ci, emulator): community emulator action / AVD caching / gradle cachine
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)
2022-04-24 13:15:19 -05:00
Mike Hardy
06e5b4210f refactor(ci): use built-in concurrency features
these did not exist prior, and cancel-workflow has worked well for us,
but built-in is better when it is available
2022-04-22 11:04:43 -05:00
George Pauer
7f1a758d52
test(unit, CI): use OS matrix w/macOS+windows+linux for unit tests (#10801) 2022-04-13 09:32:55 -05:00
krmanik
c6427a4725 add milestone to linked issues for merged pr 2022-04-12 09:41:55 -05:00
krmanik
eb6556c132 enhancements: add merged pr to milestone 2022-04-11 12:32:35 -05:00
dependabot[bot]
755ca16817 build(deps): bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 16:38:58 -05:00
dependabot[bot]
fcafe55804 build(deps): bump actions/stale from 4 to 5
Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 16:38:50 -05:00
dependabot[bot]
560c7fe19a build(deps): bump actions/setup-java from 2 to 3
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2 to 3.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 16:38:42 -05:00
krmanik
908884f198 fix milestone pr 2022-04-07 22:10:58 -05:00
krmanik
4b9bcd9cf1 fix: add merged pr to milestone 2022-04-07 11:43:49 -05:00
krmanik
c01a9fb67a fix: remove specific labels from merged pr 2022-04-05 08:48:53 -05:00
krmanik
cb082fa651 fix auto label and milestone 2022-04-01 12:51:16 -05:00
Mani
0b23430653
Add merged PR to milestone and remove specific labels (#10673) 2022-04-01 10:48:44 -05:00
Mike Hardy
b169c9a24d test(CI): call robolectric SDK download task during gradle cache warm 2022-03-27 22:48:13 -05:00
dependabot[bot]
ef840d2902 chore(deps): bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 15:09:20 +05:30
Tharun K
e27213356d
chore(lint, javascript): added prettier check (#10500)
* 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.
2022-03-14 15:09:16 -05:00
Mike Hardy
458dc53884
chore: rename default branch to main 2022-03-06 14:22:18 -05:00
dependabot[bot]
6b728901da chore(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 07:39:56 -05:00
dependabot[bot]
925490636e chore(deps): bump actions/setup-python from 2 to 3
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 07:45:24 -05:00
David Allison
ac5891d2d2 lint: change to Debug to allow androidTest lint
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
2022-02-15 07:55:28 -05:00
dependabot[bot]
8de70d72a4 Bump webfactory/ssh-agent from 0.5.3 to 0.5.4
Bumps [webfactory/ssh-agent](https://github.com/webfactory/ssh-agent) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/webfactory/ssh-agent/releases)
- [Changelog](https://github.com/webfactory/ssh-agent/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webfactory/ssh-agent/compare/v0.5.3...v0.5.4)

---
updated-dependencies:
- dependency-name: webfactory/ssh-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 08:28:37 -05:00
Mike Hardy
873362ce15
release: update github-release from 0.8.1 to 0.10.0 2021-08-05 16:07:33 -05:00
dependabot[bot]
7c942940ae build(deps): bump styfle/cancel-workflow-action from 0.9.0 to 0.9.1
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.9.0...0.9.1)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-29 20:21:33 -05:00
dependabot[bot]
325b8e3701 build(deps): bump actions/stale from 3 to 4
Bumps [actions/stale](https://github.com/actions/stale) from 3 to 4.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-16 08:47:26 -05:00
Mike Hardy
681c37d332
build(dependabot): ignore commons-compress v1.22 as well
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
2021-07-13 08:14:59 -05:00
Mike Hardy
33473d9408
build: invalidate github actions unit test gradle cache
Bumping the cache key from v1 to v2 clears it.
Intended to resolve GesureMapper NoClassDefFoundErrors popping up in CI right now.
2021-06-30 10:53:41 -05:00
Mike Hardy
34b2e95645
Dependency updates 20210622 (#9133)
* 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>
2021-06-23 08:14:53 -05:00
dependabot[bot]
f554614ce3 Bump webfactory/ssh-agent from 0.5.2 to 0.5.3
Bumps [webfactory/ssh-agent](https://github.com/webfactory/ssh-agent) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/webfactory/ssh-agent/releases)
- [Changelog](https://github.com/webfactory/ssh-agent/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webfactory/ssh-agent/compare/v0.5.2...v0.5.3)

---
updated-dependencies:
- dependency-name: webfactory/ssh-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 16:31:46 -05:00
Shridhar
d652fa2c81 Add ktlint 2021-05-28 20:12:33 +02:00
Mike Hardy
7282a42f14
test(ci): run QA workflows on dependency-branch push 2021-05-14 09:28:30 -05:00
Mike Hardy
118f3d00d2
chore(dependabot): fix yml typo 2021-05-14 09:21:29 -05:00
Mike Hardy
54e686ba4e
chore(dependabot): add github-actions to scan, explicitly ignore incompatible commons-compress 2021-05-14 09:11:41 -05:00
Mike Hardy
a30004680d
chore(dependabot): configure label to use for PRs 2021-05-14 08:56:56 -05:00
dependabot-preview[bot]
a9b9fb0b42 Upgrade to GitHub-native Dependabot (#322)
* Upgrade to GitHub-native Dependabot

* remove stale dependabot ignores

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Mike Hardy <github@mikehardy.net>
2021-05-14 08:46:57 -05:00
Mike Hardy
fe32002ae9 Run module-specific / variant-specific lint checks
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
2021-04-24 11:31:27 -05:00
Mrudul Tora
6d68424cd4
Fixes #8151 Build flavors for Amazon Appstore and Google Playstore (#8427)
Fixes #8151 Build flavors for Amazon Appstore and Google Playstore
2021-04-19 22:39:06 -05:00
Mike Hardy
f3a53cf5be
stale bot exempt properties are plural now 2021-04-15 23:07:31 -05:00
Mike Hardy
b0efa29f7a chore: bump workflow dependencies
- 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
2021-04-15 20:58:01 -05:00
Mike Hardy
69ba9d9d3d
fix(publish): allow 40 minutes before timeout
Previously it was 20 but apparently github is quite slow sometimes
2021-03-29 14:26:08 -05:00
Mike Hardy
9ce8c4aa73
fix(build): use command-line tools, not sdk tools
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
2021-03-19 14:15:27 -05:00
Mike Hardy
698c20673b
build: default to JDK11 for all workflows
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
2021-03-19 13:57:40 -05:00
Mike Hardy
f8f17c4634
test: update cancel github action, token now default 2021-03-19 13:56:50 -05:00
Arthur Milchior
330353ce63
Add accessibility mention to PR template (#8189)
* Add accessibility mention to PR template
2021-03-14 05:52:42 +01:00
David Allison
bf9c79814a CI: Run unit tests on Lint Rules
Using the 'lint' job was agreed to be an acceptable solution

Fixes 7735
2021-01-27 09:51:06 -05:00
Mike Hardy
e23949122b Run workflows if workflow definitions change 2020-12-29 11:43:23 -05:00
Mike Hardy
8e5fd6c462 Increase github action workflow checkout depth
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
2020-12-29 11:43:23 -05:00
Mike Hardy
96dd1bd16b
Add coverage upload to emulator test 2020-12-21 22:15:29 -05:00
Mike Hardy
8534e281ce
Workaround coverage upload workflow retry command limitation 2020-12-21 21:30:43 -05:00