Commit graph

97 commits

Author SHA1 Message Date
Benoit Marty
5c4da4b26e
Revert "Update codecov/codecov-action action to v4" 2023-09-15 09:19:30 +02:00
renovate[bot]
0e2a5e38cc
Update codecov/codecov-action action to v4 2023-09-14 15:39:32 +00:00
jonnyandrew
f214493c9d
[Rich text editor] Integrate rich text editor library (#1172)
* Integrate rich text editor

* Also increase swapfile size in test CI

Fixes issue where screenshot tests are terminated due to lack of CI
resources.

See https://github.com/actions/runner-images/discussions/7188#discussioncomment-6750749

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-07 15:21:29 +00:00
renovate[bot]
6596f5ec48
Update gradle/gradle-build-action action to v2.8.0 2023-08-28 19:24:00 +00:00
renovate[bot]
18f82c7329
Update gradle/gradle-build-action action to v2.7.1 2023-08-19 02:06:53 +00:00
Benoit Marty
b7f1a7765a
Merge pull request #1073 from vector-im/renovate/app.cash.paparazzi-1.x
Update plugin paparazzi to v1.3.1
2023-08-18 15:07:51 +02:00
Benoit Marty
5d91513c32 Remove failures artifact, the content is included in tests-and-screenshot-tests-results artifact (only one artifact to download). 2023-08-18 09:13:19 +02:00
Benoit Marty
90351586ef Remove report artifact, it is included in tests-and-screenshot-tests-results artifact. 2023-08-18 09:13:19 +02:00
Benoit Marty
8fabf6bc8d Paparazzi 1.3.1 exports failure deltas from PROJECT_ROOT/out/failures/ to BUILD_DIR/paparazzi/failures/. 2023-08-18 09:13:19 +02:00
Benoit Marty
cd1179014e
Merge pull request #1071 from vector-im/chore/jme/revert-merge-queue-optimizations
Revert merge queue CI optimizations
2023-08-17 20:52:16 +02:00
Jorge Martín
ccacb118a1 Revert merge queue CI optimizations 2023-08-17 17:17:03 +02:00
renovate[bot]
3a1e111b26
Update nschloe/action-cached-lfs-checkout action to v1.2.2 2023-08-10 08:26:25 +00:00
Jorge Martin Espinosa
b14c741422
CI improvements (#1012) 2023-07-31 21:05:28 +02:00
Jorge Martin Espinosa
ca3e284991
Try to skip extra checks in the CI for up to date PRs in merge queue. (#1010)
* Try to skip extra checks in the CI for up to date PRs in merge queue.

* Try to simplify check

* Remove expression syntax from `if`s
2023-07-31 15:19:51 +00:00
Jorge Martin Espinosa
9e85c74c9c
Try to fix using the merge queue (#1009) 2023-07-31 13:35:38 +00:00
renovate[bot]
61a3705c2e
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]
e7a615ea71
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
8865cc2b57
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
978c7c2aa4
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
0d45096b59 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
a2b84ac617 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]
f43de1f496
Update gradle/gradle-build-action action to v2.6.0 2023-07-10 20:05:51 +00:00
renovate[bot]
d1cd3c243e Update gradle/gradle-build-action action to v2.5.1 2023-06-29 19:30:55 +00:00
renovate[bot]
37017a993c Update gradle/gradle-build-action action to v2.5.0 2023-06-28 22:27:46 +00:00
Marco Romano
6a39b8d242 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
Benoit Marty
8b2121ae99 Restore sonar task on PR, we want to have sonarcloud comment on PR to track code quality (#619) 2023-06-16 18:00:40 +02:00
Benoit Marty
6edc7a9323 Reduce logging level to --warn to reduce verbosity for testing and checking quality workflows. Keep default (lifecycle) for build workflow.
https://docs.gradle.org/current/userguide/logging.html
2023-05-25 12:09:18 +02:00
Benoit Marty
10a70e6fe3 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
Benoit Marty
ad7bc5fecc Upgrade gradle/gradle-build-action to v2.4.2 2023-05-02 10:55:05 +02:00
Jorge Martin Espinosa
de010545fb Update Gradle to 8.1 and AGP to v8.0 (#329)
* Update AGP to 8.0.0.

* Set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var.

* Upgrade to Gradle 8.1.

* Remove `@Supress(DSL_SCOPE_VIOLATION)` as it's no longer needed.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 08:49:52 +00:00
Jorge Martin Espinosa
610e4aa8b6 Revert "Update Gradle and AGP to v8.0 (#283)" (#295)
This reverts commit cda0606a0d.
2023-04-04 14:44:01 +00:00
Jorge Martin Espinosa
cda0606a0d Update Gradle and AGP to v8.0 (#283)
* Update dependency gradle to v8

* Handle upgrading Gradle to v8.0.2

* Update AGP to 8.0.0-RC01

* Try to set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 18:02:34 +02:00
Michael Kaye
7e0a284669 Use the gradle plugin (same usage as in element-android) to standardise caching.
This may or may not speed up build times.
2023-03-07 13:32:32 +00:00
Jorge Martin Espinosa
f300842a87 CI: make sure Paparazzi test failures stop the test flow (#117)
* Run Paparazzi tests just once when koverMergedReport is used.
* Make sure a Paparazzi failure breaks the test flow and blocks merging.
* Change ./gradlew check call in quality.yml to custom runQualityChecks task.
2023-03-02 09:15:47 +01:00
Benoit Marty
34bcba1712 Rename artifact 2023-02-07 10:36:29 +01:00
Benoit Marty
058b789930 Running kover run the tests, no need to do it twice. 2023-02-07 10:36:29 +01:00
Benoit Marty
fe56e0bea0 Upload coverage reports to codecov 2023-02-01 13:42:47 +01:00
Benoit Marty
5d3ea10e30 CI: Generate and archive kover report 2023-02-01 11:45:09 +01:00
Benoit Marty
46b6ba4417 Task was not run... To check again on CI 2023-02-01 11:44:41 +01:00
Benoit Marty
7398158539 Sonar: run after tests on CI. 2023-02-01 09:11:21 +01:00
Benoit Marty
7338335a40 ./gradlew test actually includes paparazzi tests. 2023-01-19 10:46:02 +01:00
Benoit Marty
cad3ed0861 Try to run only paparazzi 2023-01-19 09:54:01 +01:00
Benoit Marty
734e24d3d0 Fix CI running Paparazzi. 2023-01-18 16:50:37 +01:00
Benoit Marty
9ec1af8207 Actually run screenshot tests 2023-01-18 15:49:57 +01:00
Benoit Marty
b55bcf5fed CI no need to run test twice 2023-01-18 15:49:57 +01:00
Benoit Marty
2c940854d8 Screenshot test in CI 2023-01-18 15:20:32 +01:00
Benoit Marty
9b1a689eaa Add unit test workflow 2022-12-09 16:58:17 +01:00