Commit Graph

113 Commits

Author SHA1 Message Date
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
Benoit Marty
02aee0fe15 Merge pull request #626 from vector-im/feature/bma/sonar
Sonar
2023-06-21 10:41:26 +02:00
Jorge Martin Espinosa
d55b1d5fce Try using ElementBot for recording screenshots too (#641) 2023-06-20 14:31:52 +02:00
Jorge Martín
2cac32ef31 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
eba78ff722 Add workflow_dispatch to be able to trigger this action. 2023-06-19 17:33:07 +02:00
Benoit Marty
bf979576cc 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
Benoit Marty
b602a4cd5d 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
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
Jorge Martín
b7235cf3e0 Add gradle cache to record screenshots flow 2023-06-05 09:03:47 +02:00
Benoit Marty
029c0a15b5 Iterate on the script #3 2023-06-02 17:37:51 +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
Benoit Marty
cb6611bdd2 Rename job - try to fix conflict. 2023-06-01 15:34:45 +02:00
Benoit Marty
7054224451 Search for forbidden patterns in Kotlin files. 2023-05-31 15:30:18 +02:00
Kat Gerasimova
94ee4f476d 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]
081b8cc4db Update rnkdsh/action-upload-diawi action to v1.5.0 2023-05-26 20:47:47 +00:00
Kat Gerasimova
e51e62087d Update triage automation for signoff 2023-05-26 11:40:02 +01:00
renovate[bot]
3a2da3aa75 Update mobile-dev-inc/action-maestro-cloud action to v1.3.3 (#457)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-26 11:04:18 +02:00
Benoit Marty
dfeb4d3c91 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
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
renovate[bot]
1ae98b8f66 Update mobile-dev-inc/action-maestro-cloud action to v1.3.2 2023-05-23 08:24:56 +00:00
Benoit Marty
6a2cb1bbb5 No need to duplicate the workflow, the workflow can have several on sections. 2023-05-11 16:36:46 +02:00
Benoit Marty
43070f7c59 Upgrade gradle/gradle-build-action to v2.4.2 2023-05-02 10:55:05 +02:00
Jorge Martin Espinosa
27824a279a Fix: Maestro tests fail when using settings (#358)
* Fix Maestro tests using 'Settings' to open the settings screen.

* Try to allow manually running Maestro tests.

* Also adjust logout flow.
2023-04-25 18:01:54 +02:00
Kat Gerasimova
dbbc14f683 Update labelled issue automation
Migrate from graphql to actions.

Add QA team
2023-04-25 13:29:27 +01:00
Jorge Martin Espinosa
32d028c50e Fix: JNA issue in release mode (#335)
* Restore checkout config for nightly workflows.

* Add missing proguard config line for JNA.
2023-04-18 11:31:25 +00:00
Benoit Marty
b557260bb7 Merge pull request #311 from vector-im/renovate/danger-danger-js-11.x
Update danger/danger-js action to v11.2.6
2023-04-18 10:51:33 +02:00
Jorge Martin Espinosa
c8fcf9549b Update the Rust SDK to v0.1.9 (#318)
* Update the Rust SDK to v0.1.7.

* Try to have the same setup for the build apk job and maestro.

* Add option to run maestro manually.

* Update to v0.1.9 (0.1.7 and 0.1.8 were broken in x86_64).
2023-04-17 17:43:21 +02:00
renovate[bot]
fa39a5ded8 Update danger/danger-js action to v11.2.6 2023-04-17 11:34:09 +00:00
Jorge Martin Espinosa
afd58f1634 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
renovate[bot]
1ba6054301 Update danger/danger-js action to v11.2.5 (#309)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-10 09:24:55 +02:00
Benoit Marty
ad0886391b Revert "Run every 10 minutes to check the script. (to be reverted!)"
This reverts commit 32be8f29e6.
2023-04-08 01:06:23 +02:00
Benoit Marty
ea9f9ccdc3 Use Python 3.9
CI complain with:
 Traceback (most recent call last):
  File "./tools/localazy/generateLocalazyConfig.py", line 39, in <module>
    action = baseAction | {
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
2023-04-07 15:03:02 +02:00
Benoit Marty
67955988cf Use Python 3.9
CI complain with:
 Traceback (most recent call last):
  File "./tools/localazy/generateLocalazyConfig.py", line 39, in <module>
    action = baseAction | {
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
2023-04-07 15:01:34 +02:00
Benoit Marty
32be8f29e6 Run every 10 minutes to check the script. (to be reverted!) 2023-04-07 12:29:35 +02:00
Benoit Marty
6af4057e74 Setup localazy before running it.
From https://localazy.com/docs/cli/installation#debianubuntu
2023-04-07 12:26:25 +02:00
renovate[bot]
54a1729bd8 Update peter-evans/create-pull-request action to v5 2023-04-05 13:56:35 +00:00
Benoit Marty
d0298392c4 Add GitHub action to sync Localazy strings. 2023-04-05 11:04:18 +02:00
Jorge Martin Espinosa
f0b95d30be Disable Diawi when running from fork (#292) 2023-04-04 16:50:50 +02:00
Jorge Martin Espinosa
4154a96b54 Revert "Update Gradle and AGP to v8.0 (#283)" (#295)
This reverts commit 4e085efcf4.
2023-04-04 14:44:01 +00:00
Jorge Martín
943d9600c3 Disable nightly workflow for forks 2023-04-04 08:26:26 +02:00
Jorge Martin Espinosa
4e085efcf4 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
Benoit Marty
65be3ed216 Remove automation to sync Element Android strings. 2023-03-20 11:25:53 +01:00
renovate[bot]
7f4eda93bd Update rnkdsh/action-upload-diawi action to v1.3.2 2023-03-18 17:40:36 +00:00
Benoit Marty
2aec795299 Run maestro only on pull request, and only when the pull request has been approved, to limit our usage of maestro cloud. #121
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-when-a-pull-request-is-approved
2023-03-10 10:24:11 +01:00
Benoit Marty
1ab2bfcd21 Ensure samples/minimal still compiles #195 2023-03-10 10:18:10 +01:00
Benoit Marty
c5474f6460 Fix APK path sent to browserstack 2023-03-09 12:27:46 +01:00
Benoit Marty
c496102a05 Update nightly_manual.yml file (iso nightly.yml) 2023-03-09 12:22:14 +01:00
Michael Kaye
f246dd1ea4 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