Commit graph

146 commits

Author SHA1 Message Date
Marco Romano
e8e4542a75
Extract maptiler's map ids (#926)
Maptiler custom map ids are only useable by the account that create them. So if we hardcode them forkers won't be able to use the maps even if the bring in their own api key (because they can't access our maps with their api key).

Requires to set our map ids in `local.properties` for local development:
```
services.maptiler.lightMapId=9bc819c8-e627-474a-a348-ec144fe3d810
services.maptiler.darkMapId=dea61faf-292b-4774-9660-58fcef89a7f3
```
2023-07-20 14:29:06 +02:00
Benoit Marty
ec79c44324 Need JDK 17 2023-07-20 11:29:55 +02:00
Benoit Marty
34ced242f8 Add workflow to create app bundle. 2023-07-20 11:08:09 +02:00
Benoit Marty
cbe1c05c0c Do not build main branch in this workflow. 2023-07-20 11:07:08 +02:00
Marco Romano
8986cf5669
Add maestro test for send location (#914)
Originally part of https://github.com/vector-im/element-x-android/pull/770
It's been extracted out since it's currently blocked by our lack of maestro cloud credits.

- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 14:46:56 +02:00
Chris Smith
1d99189955
Merge pull request #886 from vector-im/feature/cjs/location-api-key 2023-07-18 15:32:54 +01:00
Benoit Marty
b6e35de3db
Merge pull request #898 from vector-im/feature/bma/fixOnBoardingScreen
Fix on boarding screen
2023-07-18 15:55:13 +02: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
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
Chris Smith
9ef8b36f51 Location sharing: don't hardcode API key
In an effort to make it easier for forks to (a) use their own
API keys (b) change map styles or maybe even providers, move
the MapTiler key out of the source code and pass it in via
env var or property.

Also refactor the utility classes slightly to keep all the URL
related functions together, to reduce the chance of collisions
when maintaining such forks.
2023-07-17 16:09:53 +01:00
Benoit Marty
a3150542fa
Merge pull request #881 from vector-im/renovate/rnkdsh-action-upload-diawi-1.x
Update rnkdsh/action-upload-diawi action to v1.5.1
2023-07-17 16:11:37 +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
renovate[bot]
bff5c9874f
Update rnkdsh/action-upload-diawi action to v1.5.1 2023-07-16 21:03:31 +00:00
Kat Gerasimova
3414351bfd Add fixed automation for moving issues between columns
This should fix the problem we were having earlier
2023-07-14 15:33:36 +01:00
Kat Gerasimova
753d44471c
Revert "Try to debug project automation column issues" (#874)
This reverts commit 32f86b2725.
2023-07-14 12:00:02 +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
Kat Gerasimova
32f86b2725 Try to debug project automation column issues
The error I get from my private test repo is different from this one. Need to check what the first step returns
2023-07-12 17:03:02 +01: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
Marco Romano
38ecac7b59 Add Maestro tests for create & join rooms (#472)
I created 2 additional test users to use them as MXID we lookup during room creation.

I.e. we will not login as those users, it's just 2 known MXIDs that we know exist so we can look them up.

- https://github.com/vector-im/element-x-android/issues/409
2023-07-04 13:33:59 +02:00
Kat Gerasimova
62bed85015 Quote out broken issue automation for now
Need to figure out why it's not working
2023-07-03 12:12:20 +01:00
Benoit Marty
7c6bb7a45d Merge pull request #734 from vector-im/misc/cjs/dont-delete-all-the-screenshots
Improve screenshot action error handling
2023-07-03 10:23:29 +02:00
Chris Smith
9e44a9eb8c Reformat workflow 2023-06-30 13:25:36 +01:00
Kat Gerasimova
0e636c57a6 Add issues to new triage board
All new issues should go to the V2 triage board
2023-06-30 13:25:36 +01:00
Chris Smith
05592fd372 Merge pull request #730 from vector-im/renovate/gradle-gradle-build-action-2.x
Update gradle/gradle-build-action action to v2.5.1
2023-06-30 13:15:21 +01:00
Kat Gerasimova
1a85163262 Move X-Needs-Info issues on triage board 2023-06-30 12:38:06 +01: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
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
Benoit Marty
28ca5f7ffd Merge pull request #589 from vector-im/renovate/mobile-dev-inc-action-maestro-cloud-1.x
Update mobile-dev-inc/action-maestro-cloud action to v1.4.1
2023-06-27 21:28:25 +02:00
Benoit Marty
d366b40c47 Do not fail the whole build if Diawi upload fails 2023-06-27 16:16:11 +02: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
f38f1487c5 Merge pull request #626 from vector-im/feature/bma/sonar
Sonar
2023-06-21 10:41:26 +02:00
Jorge Martin Espinosa
97fbe4f4b5 Try using ElementBot for recording screenshots too (#641) 2023-06-20 14:31:52 +02:00
Jorge Martín
b648968810 Change the token used by the localazy sync so workflows are triggered in the resulting PR 2023-06-19 18:00:32 +02:00
Benoit Marty
fd8ea69104 Add workflow_dispatch to be able to trigger this action. 2023-06-19 17:33:07 +02:00
Benoit Marty
3c06e94805 Create PR to sync Localazy strings in the name of ElementBot, to that created PR can trigger other GitHub actions.
Ref: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
2023-06-19 14:12:15 +02:00
renovate[bot]
38a42cba27 Update mobile-dev-inc/action-maestro-cloud action to v1.4.1 2023-06-19 11:58:55 +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
Chris Smith
298e217b73 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
Jorge Martín
5a9de39daa Add gradle cache to record screenshots flow 2023-06-05 09:03:47 +02:00
Benoit Marty
8fbaeb020f Iterate on the script #3 2023-06-02 17:37:51 +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
Benoit Marty
82031beaa5 Rename job - try to fix conflict. 2023-06-01 15:34:45 +02:00
Benoit Marty
7f71b2d81d Search for forbidden patterns in Kotlin files. 2023-05-31 15:30:18 +02:00
Kat Gerasimova
ef6b562175 Merge pull request #466 from vector-im/kittykat-patch-2
Update triage automation for signoff
2023-05-30 11:12:25 +01:00
renovate[bot]
4b268dacd1 Update rnkdsh/action-upload-diawi action to v1.5.0 2023-05-26 20:47:47 +00:00