566 Commits

Author SHA1 Message Date
Michael Telatynski
d31a498457 Tweak branch matching to allow not applying outside of PRs for matrix-analytics-events (#25712) 2023-07-04 17:14:31 +01:00
Michael Telatynski
1a2d201863 Tweak branch matching to allow not applying outside of PRs for matrix-analytics-events (#11186) 2023-07-04 17:14:29 +01:00
Richard van der Hoff
192e6f6c3d Fix PR lookup for fetchdep.sh (#10990)
Context: `fetchdep.sh` attempts to check out a github repository based on the
details in a pull request. To do this, it needs to know how to find the pull
request. So, the github workflows attempt to set environment variables to tell
it. Unfortunately, they currently disagree about what the names of the
environment variables should be.

This appears to have been introduced by #8498.

To simplify matters, we may as well have the script use `${GITHUB_REPOSITORY}`
directly, and remove te unused `REPOSITORY` env var from the workflows.
2023-05-25 13:50:17 +00:00
renovate[bot]
5557487ef2 Update dependency mkdirp to v3 (#25142)
* Update dependency mkdirp to v3

* Iterate

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-18 16:01:10 +00:00
Michael Telatynski
24eed963d3 Use frozen lockfile instead of pure lockfile on yarn install (#10493) 2023-03-31 15:06:08 +00:00
Michael Telatynski
ddc2932541 Use frozen lockfile instead of pure lockfile on yarn install (#25009) 2023-03-31 14:52:29 +00:00
Michael Telatynski
667ec166d7 Remove Enzyme tests in favour of React testing-library (#10289) 2023-03-06 12:13:17 +00:00
Michael Telatynski
a09e105c23 Make workflows reusable for downstream testing (#10174) 2023-02-20 11:41:36 +00:00
Michael Weimann
526645c791 Apply prettier formatting 2022-12-12 12:24:14 +01:00
Michael Weimann
7921a6cbf8 Apply prettier formatting 2022-12-09 13:28:29 +01:00
Michael Telatynski
8ced72dba6 Remove unused Dockerfile (#9716) 2022-12-07 08:17:19 +01:00
Michael Telatynski
7defcf3957 Adding tarfile member sanitization to extractall() (#23906)
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: TrellixVulnTeam <charles.mcfarland@trellix.com>
2022-12-05 17:03:17 +00:00
Michael Telatynski
b34a4ed311 Delete redeploy.py (#23814) 2022-11-22 10:49:18 +00:00
Robin
46c005a5d3 Don't hardcode /bin/bash in scripts (#23740)
Some operating systems, such as NixOS, don't place binaries in /bin. The appropriate cross-platform method is to use /usr/bin/env.
2022-11-09 09:58:06 -05:00
Michael Telatynski
3be527cac8 Deploy develop branch to Cloudflare Pages (#23454)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-11-08 13:27:20 +00:00
Michael Telatynski
96213d644b Make bash scripts exit on error rather than continue (#9396) 2022-10-12 16:15:57 +01:00
Michael Telatynski
341b0b469e Make bash scripts exit on error rather than continue (#23467) 2022-10-12 16:15:51 +01:00
Michael Telatynski
eaff7e945c Consolidate js-sdk release mode typing CI (#9326) 2022-09-30 17:12:16 +01:00
Michael Telatynski
ae2c163441 Fix if condition for deciding how to structure docker version file (#23186) 2022-09-05 09:35:16 +01:00
Michael Telatynski
4b6d9a067b Update deploy scripts for gha-webhook-listener compatibility (#23002)
* Soft fail Sentry uploads from Webpack

* Delete duplicated script

* Delint script

* Move symlink support from redeploy to deploy
2022-08-09 13:23:41 +01:00
Michael Telatynski
f566c600e2 Port remaining Puppeteer tests over to Cypress (#9104)
* Port remaining Puppeteer tests over to Cypress

* Remove puppeteer support files

* Fix lifecycle matrixclientpeg setup race condition

* Alternative solution to the lifecycle problem

* Dismiss the notifications toast
2022-07-29 14:03:25 +00:00
Michael Telatynski
d86e897ba6 Rework dockerhub builds (#22026)
* WIP

* Attempt to wire up dockerhub building in GHA

* Fix issue with mime types

* Skip linux/arm, Cypress only installs on 64-bit

* Update dockerhub.yaml

* Update comment
2022-07-29 14:30:16 +01:00
Šimon Brandner
ee3b9c3310 Improve dead code detection (#22829) 2022-07-25 09:35:48 +00:00
Michael Telatynski
01f4bb8c78 Rename PostCSS files to .pcss (#9013)
* Rename PostCSS files to `.pcss`

* Make Stylelint happy

* Delint

* Rename new files too

* delint

* Fix bad comment placement
2022-07-15 14:53:23 +01:00
Šimon Brandner
e1d4817d54 Add a script to check for dead code (#22793) 2022-07-13 10:04:32 +02:00
Michael Telatynski
5630a7defe Update matrix-analytics-events to @matrix-org/analytics-events (#22469)
* Update matrix-analytics-events to @matrix-org/analytics-events

* Update layered.sh
2022-06-07 20:08:38 +01:00
Michael Telatynski
8036985204 Update matrix-analytics-events to @matrix-org/analytics-events (#8778)
* Update matrix-analytics-events to @matrix-org/analytics-events

* Update install-deps.sh

* Update layered.sh

* Update BeaconMarker-test.tsx.snap

* Update BeaconStatus-test.tsx.snap
2022-06-07 20:08:36 +01:00
Robin
359e0e205f Make Lao translation available (#22358) 2022-05-26 08:49:58 -04:00
Michael Telatynski
b3ef2c179a Update weblateToCounterpart to be more resilient (#22247)
* Update i18n check CI to ignore RiotTranslateBot

* Update `weblateToCounterpart` to be more resilient
2022-05-17 17:44:30 +01:00
Michael Telatynski
6c87e294c4 Run CI in Github Actions (#22054)
* Tidy workflows

* Update get-version-from-git.sh

* Run tests in Actions

* Upload coverage to SonarCloud

* Run linters in Actions

* Run builds in Actions, consolidating with sentry uploader

* Update sonar-project.properties

* chmod +x

* Iterate

* Use new env vars

* Delete yarn-sub.js

* Use re-usable sonarqube action

* Add README badges

* Match reality
2022-05-16 16:23:44 +02:00
Michael Telatynski
cda31136b9 Tweak sonar-project.properties (#8498) 2022-05-04 15:29:34 -04:00
Michael Telatynski
92f440d9de Consolidate deployment management into more maintained action (#8430) 2022-04-29 11:07:42 +01:00
Travis Ralston
a6564d9ab9 Step 14: Remove reskindex 2022-03-28 15:30:30 -06:00
Travis Ralston
9c23f6c476 Step 14: Remove reskindex 2022-03-28 15:26:22 -06:00
Travis Ralston
7aeb2c3cde Step 10.4: Fix end-to-end test branch matching 2022-03-28 14:33:28 -06:00
Travis Ralston
a987ead7d2 Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
David Baker
1eb67047c9 Add some doc to the github actions / CI scripts (#8034)
* Add some doc to the githuib actions / CI scripts

Type: task

* alalytics-events is more name matching
2022-03-11 13:00:56 +00:00
Robin
8ec86eb7d5 Remove Lojban translation (#21302)
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-04 14:17:19 +00:00
Kerry
ebb1feee50 Basic script to create react component with test and style files (#7757)
* basically working script

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add test template

* add skinned-sdk import to test temp

* remove extra import

Signed-off-by: Kerry Archibald <kerrya@element.io>

* comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-09 10:33:21 +01:00
Michael Telatynski
8dd0722e04 Update eventName=Screen to $screen to match PostHog's special behaviour (#7667) 2022-02-01 15:49:49 +00:00
Travis Ralston
61a0be7d46 Render events as extensible events (behind labs) (#7462)
* Render events as extensible events (behind labs)

* Include the SDK

* Appease linter

* Update for changed property name

* Fix formatting error

* Fix branch matching for build steps

* Update SDK

* Update scripts/fetchdep.sh

Co-authored-by: Andy Balaam <andyb@element.io>

Co-authored-by: Andy Balaam <andyb@element.io>
2022-01-13 17:03:37 +00:00
Michael Telatynski
d7813c09d9 Update default Jitsi URLs to meet.element.io (#20487) 2022-01-11 16:15:17 +00:00
J. Ryan Stinnett
6c1fc8e903 Disable Git interactive auth when fetching deps (#20484)
This is important for branch testing, especially via HTTPS.
2022-01-11 12:48:49 +00:00
Travis Ralston
2617b424ce Fix git protocol usage (#20464)
Prevents this:
```
+ git clone git://github.com/matrix-org/matrix-js-sdk.git matrix-js-sdk --branch develop --depth 1
Cloning into 'matrix-js-sdk'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
```
2022-01-11 09:06:18 +00:00
Ben Parsons
a90cbe9476 Include Vietnamese language (#20029)
* Include Vietnamese language

https://translate.element.io/languages/vi/element-web/ has been professionally translated by an Element customer

* Vietnamese -> "Tiếng Việt" ("Vietnamese Language")
2021-12-14 10:16:24 +00:00
James Salter
b0abbfacd4 Fix Docker build versioning (#20077)
* Centralise version scripts and fix Docker version
* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
  version file and invokes yarn build passing VERSION
* Normalize the version received from the server
2021-12-07 15:11:01 +11:00
James Salter
d4813f7a1a Convert end-to-end tests to Typescript (#7206) 2021-12-06 09:59:06 +11:00
Linerly
1a403a37f9 Add support for the Indonesian language (#20032)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-12-03 12:40:56 +00:00
Travis Ralston
c9619bfe48 Fix documentation to make yarn test work out of the box (mk II) (#7075)
* Fix documentation to make `yarn test` work out of the box

Before, invoking `yarn test` croaked on a missing src/component-index.js
file. In another part of the README, the missing instruction to generate
this file was found.

* Fix CI: Unauthenticated git protocol on port 9418 is no longer supported

GitHub is deprecating the service which answered unauthenticated git
protocol requests. Either it happened already, or they are running
brownouts.

* This is where I meant to leave that comment

Co-authored-by: Andreas Motl <andreas.motl@panodata.org>
2021-11-02 20:22:24 +00:00
James Salter
f550d63198 Pass our VERSION to sentry plugin's release arg via env (#19474)
Use our existing VERSION, deduced by the packaging script, as the release for sentry sourcemaps.

This will be undefined for dev builds.
2021-10-22 15:06:14 +01:00