Commit Graph

33 Commits

Author SHA1 Message Date
renovate[bot]
196203a9f5 Update gradle/gradle-build-action action to v2.12.0 2024-01-24 22:25:02 +00:00
Benoit Marty
b40d661acd Kover: we need Xml report as well. 2024-01-09 17:15:37 +01:00
Benoit Marty
b727312040 Upgrade Kover to 0.7.5 2024-01-09 10:51:30 +01:00
renovate[bot]
fd53c587fe Update gradle/gradle-build-action action to v2.11.1 2023-12-20 06:42:17 +00:00
renovate[bot]
4efed07ef7 Update actions/upload-artifact action to v4 (#2034)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-14 18:58:03 +01:00
Benoit Marty
c2db3bdaa9 Merge pull request #2004 from element-hq/feature/bma/elementHq
Element hq
2023-12-13 12:08:08 +01:00
Benoit Marty
677476cdbc Organization renaming: update workflow condition. 2023-12-13 09:48:05 +01:00
renovate[bot]
df21525177 Update gradle/gradle-build-action action to v2.11.0 2023-12-13 07:34:48 +00:00
renovate[bot]
4a95a49843 Update actions/setup-java action to v4 2023-11-29 16:04:07 +00:00
renovate[bot]
ece3969c39 Update gradle/gradle-build-action action to v2.10.0 2023-11-27 09:30:38 +00:00
Jorge Martin Espinosa
7d9324d4d6 Lower RAM usage in nightly related jobs (#1777)
* Lower RAM usage in nightly related jobs

* Restore `kotlin.daemon.jvm.options` for nigthly reports
2023-11-09 11:29:59 +01:00
renovate[bot]
dd57197f32 Update kotlin (#1697)
* Update kotlin

* Lower Sonar RAM usage, remove redundant `Dkotlin.daemon.jvm.options`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-08 12:58:14 +00:00
Jorge Martin Espinosa
bf4ce9f05a Lower max RAM usage for gradle to avoid CI issues (#1766) 2023-11-08 09:45:55 +00:00
Jorge Martin Espinosa
3fc8f1aaec Use Parallel GC and bump RAM usage (#1734)
* Use Parallel GC and bump RAM usage

* Build only `app` project in `Build APKs (debug)` flow.

* Remove redundant JNA dependency
2023-11-03 10:34:49 +01:00
renovate[bot]
3ecd2318f9 Update gradle/gradle-build-action action to v2.9.0 2023-10-01 01:04:40 +00:00
renovate[bot]
9c17ec2f2f Update gradle/gradle-build-action action to v2.8.1 (#1426)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-25 21:10:42 +02:00
Benoit Marty
6537bc1617 Just try using actions/checkout@v4 2023-09-11 14:51:12 +02:00
renovate[bot]
dab1b0e0bf Update actions/checkout action to v4 2023-09-04 12:50:03 +00:00
renovate[bot]
8bae51ff5e Update gradle/gradle-build-action action to v2.8.0 2023-08-28 19:24:00 +00:00
renovate[bot]
091b2c1c44 Update gradle/gradle-build-action action to v2.7.1 2023-08-19 02:06:53 +00:00
renovate[bot]
ebc53993cc Update nschloe/action-cached-lfs-checkout action to v1.2.2 2023-08-10 08:26:25 +00:00
renovate[bot]
015b98d818 Update gradle/gradle-build-action action to v2.7.0 (#958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-25 08:07:48 +02:00
renovate[bot]
e4a7fcc60c Update gradle/gradle-build-action action to v2.6.1 (#893)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-18 12:25:18 +02:00
Jorge Martin Espinosa
323a84db37 Disable Paparazzi tasks when Kover is running. (#884)
* Disable Paparazzi tasks when Kover is running.

It allows us to split the test jobs between unit tests, screenshot test and coverage reports.

* Move Sonar upload to the quality workflow, since we have no lint info in tests.
2023-07-17 10:55:51 +02:00
Jorge Martin Espinosa
64b6970c89 Try to improve 'Tests' CI job times (#865)
* Try to improve 'Tests' CI job times

* Remove `-Pci-build=true` for jobs where the debug mode can be explicitly used

* Add some more excluded `*State` values for kover

* Run paparazzi verification at the same time as Kover tasks, otherwise the coverage is lost.
2023-07-13 10:47:55 +02:00
Benoit Marty
1db234466c Split task in 2, due to the fact that when we run kover on the CI, run only debug test variants.
Error was:
 Some problems were found with the configuration of task ':koverMergedHtmlReport' (type 'KoverHtmlTask').
  - Gradle detected a problem with the following location: '/home/runner/work/element-x-android/element-x-android/features/analytics/api/build/tmp/kotlin-classes/release'.

    Reason: Task ':koverMergedHtmlReport' uses this output of task ':features:analytics:api:compileReleaseKotlin' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':features:analytics:api:compileReleaseKotlin' as an input of ':koverMergedHtmlReport'.
      2. Declare an explicit dependency on ':features:analytics:api:compileReleaseKotlin' from ':koverMergedHtmlReport' using Task#dependsOn.
      3. Declare an explicit dependency on ':features:analytics:api:compileReleaseKotlin' from ':koverMergedHtmlReport' using Task#mustRunAfter.
...
2023-07-12 15:11:40 +02:00
Benoit Marty
38ec0f2039 Ensure CI run all the tests. There were some failing tests, but the CI does not see it. It seems that koverMergedReport does not run all the tests (?). 2023-07-12 09:40:02 +02:00
renovate[bot]
0ae3d25666 Update gradle/gradle-build-action action to v2.6.0 2023-07-10 20:05:51 +00:00
renovate[bot]
fb2b12cbd1 Update gradle/gradle-build-action action to v2.5.1 2023-06-29 19:30:55 +00:00
renovate[bot]
818c868f02 Update gradle/gradle-build-action action to v2.5.0 2023-06-28 22:27:46 +00:00
Marco Romano
465ce0fc9b Use github action that caches LFS files when checking out the repo (#647)
Uses https://github.com/nschloe/action-cached-lfs-checkout where we're using git-lfs.

This is a wrapper around `actions/checkout@v3` which uses `actions/cache@v3` to cache the files on LFS to avoid downloading them every time and spare LFS bandwidth.
2023-06-21 09:12:47 +00:00
Chris Smith
5707aedfa2 GH Workflows: move deps check, fix nightly
Move the dependency check job from the quality workflow that
runs on every PR to the nightly reports workflow. This sometimes
flakes as it does a _lot_ of HTTP requests. It's less intrusive
if that happens outside of the PR workflow.

Also change the nightly job that runs tests to use LFS, so it
actually has access to screenshots :)

The sonar task is still broken, but it seems like an upstream bug:
https://community.sonarsource.com/t/sonar-plugin-4-1-0-3113-4-2-0-3129-errors/91568
2023-06-06 16:32:18 +01:00
Benoit Marty
a7339cb9c4 Reduce time to run test from 15 minutes to about 8 by disabling creating artifact and uploading to sonar.
Instead those 2 steps are now run once a day in a separate GitHub action.
2023-05-23 14:59:28 +02:00