Commit Graph

15 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
40699dd3fa Test using Maestro CLI + emulator instead of Cloud (#4092)
Add Maestro local CI workflow:
- Remove previous Maestro Cloud.
- Use an emulator with Pixel 7 Pro - API 35.
- Allow to record several videos in the background to verify the run.
- Upload test results.
- Allow either dispatching a new flow, running the 'build apk' job or run with a PR after the 'Build APK' flow has succeeded.
2025-01-07 14:05:14 +01:00
Benoit Marty
05fc76822a Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Jorge Martín
f818b28a06 Fix screenshot recording in CI 2024-10-04 15:53:14 +02:00
Benoit Marty
5ec61619e1 Change ElementBot mail to android@element.io 2024-09-19 11:22:58 +02:00
Benoit Marty
e21938933e Migrate license to AGPL - sh files. 2024-09-06 17:52:37 +02:00
Jorge Martin Espinosa
950e502ca6 Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +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 Martín
0cef150147 Fix record screenshots workflow and script 2024-01-02 10:43:57 +01:00
Jorge Martin Espinosa
b1f2370e72 Run 'record screenshots' flow if label is present (#1860)
* Run 'record screenshots' flow if label is present

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-23 08:25:33 +01:00
Benoit Marty
589e785c62 Ensure previous screenshots are deleted. Sometimes, the registered task is not trigger, I do not know why... 2023-07-18 14:56:48 +02:00
Chris Smith
8f03948e32 Improve screenshot action error handling
If the gradle build fails for some reason, the script should
bail out instead of carrying on and pushing a commit that
deletes all the screenshots[1]!

`set -e` simply makes the script return the appropriate
exit code immediately if any of the subcommands fails.

[1] e.g.
529a7c87ef
2023-06-30 10:14:32 +01:00
Jorge Martin Espinosa
d55b1d5fce Try using ElementBot for recording screenshots too (#641) 2023-06-20 14:31:52 +02:00
Benoit Marty
470902d281 Iterate on the script #2 2023-06-02 17:20:36 +02:00
Benoit Marty
26fb2ea238 Iterate on the script 2023-06-02 16:40:41 +02:00
Benoit Marty
bc352ba9de Add GitHub workflow to record screenshots when manually triggered. 2023-06-02 16:16:29 +02:00