Jorge Martín
eb78f32e8c
Fix screenshot recording in CI
2024-10-04 15:53:14 +02:00
Benoit Marty
197fe9b2e2
Change ElementBot mail to android@element.io
2024-09-19 11:22:58 +02:00
Benoit Marty
b7fc6261f0
Migrate license to AGPL - sh files.
2024-09-06 17:52:37 +02:00
Jorge Martin Espinosa
b0cebf5ca0
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
c9e0db26d8
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
8daf5150af
Fix record screenshots workflow and script
2024-01-02 10:43:57 +01:00
Jorge Martin Espinosa
e13b204f4b
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
e831b621c9
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
d0b7f7689e
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.
https://github.com/vector-im/element-x-android/pull/726/commits/a58834240e1054688527955ea3414d8687bd5975
2023-06-30 10:14:32 +01:00
Jorge Martin Espinosa
97fbe4f4b5
Try using ElementBot for recording screenshots too ( #641 )
2023-06-20 14:31:52 +02:00
Benoit Marty
7c6fbb36ba
Iterate on the script #2
2023-06-02 17:20:36 +02:00
Benoit Marty
38ffb88b7f
Iterate on the script
2023-06-02 16:40:41 +02:00
Benoit Marty
1c58a39128
Add GitHub workflow to record screenshots when manually triggered.
2023-06-02 16:16:29 +02:00