Commit Graph

109 Commits

Author SHA1 Message Date
renovate[bot]
d648c598c2 chore(deps): update gradle/actions action to v6 (#6489)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 15:13:07 +02:00
renovate[bot]
01d6417971 chore(deps): update nschloe/action-cached-lfs-checkout action to v1.2.4 2026-03-23 13:40:04 +00:00
Jorge Martin Espinosa
949a12f3d2 Improve Kover setup by using only convention plugins (#6213)
* Improve Kover setup using convention plugins.
* Add a new JVM library convention plugin with Kover support
2026-03-16 14:41:07 +00:00
renovate[bot]
6229a3bcef chore(deps): update webfactory/ssh-agent action to v0.10.0 (#6325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 09:18:50 +01:00
Benoit Marty
17f45d091a Remove all permission by default. 2026-03-05 15:39:55 +01:00
Benoit Marty
bb48fb7fd1 Use commit instead of version for github actions. 2026-03-05 15:39:54 +01:00
Jorge Martin Espinosa
494e425de0 CI: Add failed tests to summary (#6271)
* Fix maestro CI flow not writing the successful summary

* Add the test failures to the summary of the `test` CI flow
2026-03-02 11:23:41 +01:00
renovate[bot]
5547b532b1 Update GitHub Artifact Actions (#6260)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 09:55:47 +01:00
Jorge Martin Espinosa
3a856394f2 Add free disk space action to CI actions (#6212)
* Add free disk space action

* Remove 'upload APK for Maestro' step since it's no longer used

* Re-enable tool-cache removal

* Add the free disk space step to other gradle-related jobs

* Use commit SHA

* Disable removing `large-packages`
2026-02-18 22:55:50 +01:00
renovate[bot]
861ee714b4 Update GitHub Artifact Actions (#5932)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-19 15:38:26 +01:00
renovate[bot]
618171be05 chore(deps): update codecov/codecov-action action to v5.5.2 2025-12-10 08:09:29 +01:00
renovate[bot]
5c88c78316 chore(deps): update github artifact actions 2025-10-25 00:13:11 +00:00
Benoit Marty
8bc92a2a87 Import Compound tests from project https://github.com/element-hq/compound-android 2025-10-06 10:47:31 +02:00
renovate[bot]
f212d3f500 chore(deps): update gradle/actions action to v5 (#5444)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-03 16:49:43 +02:00
renovate[bot]
7ad7dcf068 Update codecov/codecov-action action to v5.5.1 (#5274)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-05 17:40:54 +02:00
renovate[bot]
26cd6772fb Update codecov/codecov-action action to v5.5.0 (#5191)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-21 08:37:41 +02:00
renovate[bot]
906583e8a5 Update actions/setup-java action to v5 (#5196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-21 08:35:01 +02:00
renovate[bot]
d4a62708f8 chore(deps): update codecov/codecov-action action to v5.4.3 (#4730)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-16 16:15:37 +02:00
Benoit Marty
716827e8bc Pin commit sha on GitHub actions (#4653)
* Use Git SHA instead of version.

* Use version instead of main branch.
2025-04-29 09:08:06 +02:00
renovate[bot]
253cec4ffc chore(deps): update webfactory/ssh-agent action to v0.9.1 2025-03-17 15:50:23 +00:00
renovate[bot]
57fcfb3f98 Update nschloe/action-cached-lfs-checkout action to v1.2.3 2024-12-10 15:01:25 +00:00
renovate[bot]
db5eed14d2 Update codecov/codecov-action action to v5 2024-11-14 20:09:13 +00:00
Benoit Marty
a8eeae65c4 Ensure the CI compile and execute all the unit tests. 2024-10-07 17:20:40 +02:00
Benoit Marty
f1e3824fe4 Revert "Ensure the CI compile and execute all the unit tests."
This reverts commit dab91ade17.
2024-10-07 17:19:57 +02:00
Benoit Marty
dab91ade17 Ensure the CI compile and execute all the unit tests. 2024-10-07 17:18:53 +02:00
Jorge Martin Espinosa
8c97e05733 Disable configuration cache in the CI by default (#3601) 2024-10-04 13:57:46 +02:00
Jorge Martin Espinosa
0350a95672 Merge unit, screenshot tests and coverage in a single CI call (#3593)
* Merge unit, screenshot tests and coverage tasks in a single CI call

* Disable gradle daemon too since it's all in a single gradle call now

* Make Kover upload the HTML reports on failure too
2024-10-03 15:38:08 +02:00
Jorge Martin Espinosa
60f1bf6e54 Upgrade the used JDK in the project to v21 (#3582)
* Upgrade the used JDK in the project to v21

* Use it for CI too

* Centralise java language version

* Fix deprecations, tests and lint issues

* Fix coverage taking into account `@Preview` annotated code.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-03 09:38:03 +00:00
Jorge Martin Espinosa
4a43fcb69a Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
Jorge Martin Espinosa
199893c701 Try adding a memory limit for the kotlin compiler (#3377)
* Try adding a memory limit for the kotlin compiler

* Tweak values for all flows
2024-09-04 19:33:50 +00:00
renovate[bot]
5c24587c53 Update gradle/actions action to v4 (#3265)
* Update gradle/actions action to v4

* Remove unnecessary gradle validation after action update to v4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-08-09 15:03:14 +02:00
Jorge Martin Espinosa
bbe1dc4952 Fix CI for forks (#3226)
* Try with a different condition for forks

* Skip danger in forks, the fallback token won't let it write comments in PRs anyway
2024-07-19 17:46:56 +02:00
Jorge Martin Espinosa
508b7e48e3 Only add private SSH keys and clone submodules in the original repo (#3225) 2024-07-19 17:25:49 +02:00
Benoit Marty
9a4ec53612 Do not clone submodules in forks. 2024-07-01 12:20:15 +02:00
Benoit Marty
1ba0399dbc Run tests on Element Enterprise modules. 2024-06-26 11:59:44 +02:00
Jorge Martin Espinosa
f3fa7e57a5 Try to workaround OOM errors and the runners dying (#3013)
* Try to workaround OOM errors and the runner dying

* Some more tweaks:

- Add `-XX:MaxMetaspaceSize` (https://github.com/gradle/gradle/issues/19750)
- Remove `-PpreDexEnable` as it's deprecated and no longer used.
- Remove `--max-workers` as gradle will automatically use the optimal amount.

* Remove `--max-workers` in recording screenshots too
2024-06-12 15:35:51 +02:00
Jorge Martin Espinosa
0bf4819de2 Try fixing OOM by changing GC and adding RAM to the kotlin compiler (#2965)
* Try fixing OOM by changing GC and adding RAM to the kotlin compiler

* Add gradle cache to build apk job in maestro flow.

- Remove unnecessary dependency in `:features:call` module.

* Fix sonar in nightly reports

* Bump heap size of nightly reports
2024-06-03 11:28:51 +02:00
Jorge Martin Espinosa
921e63680c Bump max heap size for building the debug APK for Maestro (#2960)
* Bump max heap size for building the debug APK for Maestro
* Enable `sonar.gradle.skipCompile`
* Fix sonar job
* Bump the MaxMetaspaceSize
* Don't try to upload failed test results to codecov, it doesn't work
2024-05-31 14:44:33 +00:00
renovate[bot]
46107a9cff Update kotlin to v0.8.0 (#2854)
* Update kotlin to v0.8.0

* Adapt our setup to `v0.8.0`'s changes

* Make sure verification tasks run on `check` tasks

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-05-17 17:07:19 +02:00
Jorge Martin Espinosa
b488cbbfb8 Test and verify coverage only on debug variant (#2556)
* Test and verify coverage only on debug variant

* Set files to upload

* Fix also nightlyReports flow
2024-03-15 15:52:33 +01:00
Jorge Martin Espinosa
00f68a0f86 Revert "Clear and generate new cache only when merging to develop" (#2550)
This reverts commit 0473c4b5f0.
2024-03-14 13:34:19 +01:00
Jorge Martin Espinosa
0473c4b5f0 Clear and generate new cache only when merging to develop (#2549)
Clearing the cache regularly doesn't work because on each new merge to develop a new cache of almost 4GB will be created and replace the 'cleared' one.

We can try doing a clean up to this cache we're about to save so it's a bit smaller.
2024-03-14 09:40:34 +01:00
Jorge Martin Espinosa
31db4fa3c8 Bump CI max JVM heap size and CPU usage (#2444)
* Bump CI max JVM heap size and CPU usage

* Bump Heap size a bit more for `build`

* Bump Heap size for tests too
2024-02-27 11:26:56 +01:00
Benoit Marty
2e2ecae1a6 Remove verbose flag, was added to get more details about an error. 2024-02-07 10:29:18 +01:00
Benoit Marty
cebfa6560a Try to get more log from Codecov action. 2024-02-06 20:15:34 +01:00
Benoit Marty
a8123d717b Merge pull request #2326 from element-hq/renovate/gradle-gradle-build-action-3.x
Update gradle/gradle-build-action action to v3
2024-02-01 15:43:01 +01:00
renovate[bot]
122c24e942 Update codecov/codecov-action action to v4 (#2331)
* Update codecov/codecov-action action to v4

* Add missing codecov token

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-02-01 15:27:27 +01:00
Benoit Marty
5f7174e337 Migrate form gradle/gradle-build-action to gradle/actions/setup-gradle
https://github.com/gradle/gradle-build-action
2024-02-01 14:53:28 +01:00
renovate[bot]
a190a47109 Update gradle/gradle-build-action action to v3 2024-01-31 11:34:52 +00:00
renovate[bot]
196203a9f5 Update gradle/gradle-build-action action to v2.12.0 2024-01-24 22:25:02 +00:00