Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4c4d2de

Browse files
authored
Merge branch 'develop' into fix-spacing-SetIntegrationManager
2 parents 86f6403 + 2245190 commit 4c4d2de

File tree

744 files changed

+15947
-11992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

744 files changed

+15947
-11992
lines changed

.eslintrc.js

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,9 @@ module.exports = {
8181

8282
// There are too many a11y violations to fix at once
8383
// Turn violated rules off until they are fixed
84-
"jsx-a11y/alt-text": "off",
8584
"jsx-a11y/aria-activedescendant-has-tabindex": "off",
8685
"jsx-a11y/click-events-have-key-events": "off",
8786
"jsx-a11y/interactive-supports-focus": "off",
88-
"jsx-a11y/label-has-associated-control": "off",
8987
"jsx-a11y/media-has-caption": "off",
9088
"jsx-a11y/mouse-events-have-key-events": "off",
9189
"jsx-a11y/no-autofocus": "off",
@@ -165,17 +163,40 @@ module.exports = {
165163
},
166164
{
167165
files: ["test/**/*.{ts,tsx}", "cypress/**/*.ts"],
166+
extends: ["plugin:matrix-org/jest"],
168167
rules: {
169168
// We don't need super strict typing in test utilities
170169
"@typescript-eslint/explicit-function-return-type": "off",
171170
"@typescript-eslint/explicit-member-accessibility": "off",
171+
172+
// Jest/Cypress specific
173+
174+
// Disabled tests are a reality for now but as soon as all of the xits are
175+
// eliminated, we should enforce this.
176+
"jest/no-disabled-tests": "off",
177+
// TODO: There are many tests with invalid expects that should be fixed,
178+
// https://github.com/vector-im/element-web/issues/24709
179+
"jest/valid-expect": "off",
180+
// Also treat "oldBackendOnly" as a test function.
181+
// Used in some crypto tests.
182+
"jest/no-standalone-expect": [
183+
"error",
184+
{
185+
additionalTestBlockFunctions: ["beforeAll", "beforeEach", "oldBackendOnly"],
186+
},
187+
],
172188
},
173189
},
174190
{
175191
files: ["cypress/**/*.ts"],
176192
parserOptions: {
177193
project: ["./cypress/tsconfig.json"],
178194
},
195+
rules: {
196+
// Cypress "promises" work differently - disable some related rules
197+
"jest/valid-expect-in-promise": "off",
198+
"jest/no-done-callback": "off",
199+
},
179200
},
180201
],
181202
settings: {

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
)
2424
)
2525
steps:
26-
- uses: tibdex/backport@v2
26+
- uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac # v2
2727
with:
2828
labels_template: "<%= JSON.stringify([...labels, 'X-Release-Blocker']) %>"
2929
# We can't use GITHUB_TOKEN here or CI won't run on the new PR

.github/workflows/cypress.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
# We create the status here and then update it to success/failure in the `report` stage
3131
# This provides an easy link to this workflow_run from the PR before Cypress is done.
32-
- uses: Sibz/github-status-action@v1
32+
- uses: Sibz/github-status-action@faaa4d96fecf273bd762985e0e7f9f933c774918 # v1
3333
with:
3434
authToken: ${{ secrets.GITHUB_TOKEN }}
3535
state: pending
@@ -97,7 +97,7 @@ jobs:
9797
- uses: browser-actions/setup-chrome@latest
9898
- run: echo "BROWSER_PATH=$(which chrome)" >> $GITHUB_ENV
9999

100-
- uses: tecolicom/actions-use-apt-tools@v1
100+
- uses: tecolicom/actions-use-apt-tools@ceaf289fdbc6169fd2406a0f0365a584ffba003b # v1
101101
with:
102102
# Our test suite includes some screenshot tests with unusual diacritics, which are
103103
# supposed to be covered by STIXGeneral.
@@ -115,14 +115,14 @@ jobs:
115115
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
116116
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
117117
- name: 📥 Download artifact
118-
uses: dawidd6/action-download-artifact@v2
118+
uses: dawidd6/action-download-artifact@5e780fc7bbd0cac69fc73271ed86edf5dcb72d67 # v2
119119
with:
120120
run_id: ${{ github.event.workflow_run.id }}
121121
name: previewbuild
122122
path: webapp
123123

124124
- name: Run Cypress tests
125-
uses: cypress-io/github-action@v5.0.2
125+
uses: cypress-io/github-action@v5.5.0
126126
with:
127127
# The built-in Electron runner seems to grind to a halt trying
128128
# to run the tests, so use chrome.
@@ -205,7 +205,7 @@ jobs:
205205

206206
- name: Skip Percy required check
207207
if: needs.prepare.outputs.percy_enable != '1'
208-
uses: Sibz/github-status-action@v1
208+
uses: Sibz/github-status-action@faaa4d96fecf273bd762985e0e7f9f933c774918 # v1
209209
with:
210210
authToken: ${{ secrets.GITHUB_TOKEN }}
211211
state: success
@@ -214,7 +214,7 @@ jobs:
214214
sha: ${{ github.event.workflow_run.head_sha }}
215215
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
216216

217-
- uses: Sibz/github-status-action@v1
217+
- uses: Sibz/github-status-action@faaa4d96fecf273bd762985e0e7f9f933c774918 # v1
218218
with:
219219
authToken: ${{ secrets.GITHUB_TOKEN }}
220220
state: ${{ needs.tests.result == 'success' && 'success' || 'failure' }}

.github/workflows/i18n_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: "Get modified files"
1313
id: changed_files
1414
if: github.event_name == 'pull_request' && github.event.pull_request.user.login != 'RiotTranslateBot'
15-
uses: tj-actions/changed-files@v35
15+
uses: tj-actions/changed-files@84ed30e2f4daf616144de7e0c1db59d5b33025e3 # v35
1616
with:
1717
files: |
1818
src/i18n/strings/*

.github/workflows/netlify.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
environment: Netlify
1414
steps:
1515
- name: 📝 Create Deployment
16-
uses: bobheadxi/deployments@v1
16+
uses: bobheadxi/deployments@88ce5600046c82542f8246ac287d0a53c461bca3 # v1
1717
id: deployment
1818
with:
1919
step: start
@@ -33,15 +33,15 @@ jobs:
3333
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
3434
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
3535
- name: 📥 Download artifact
36-
uses: dawidd6/action-download-artifact@v2
36+
uses: dawidd6/action-download-artifact@5e780fc7bbd0cac69fc73271ed86edf5dcb72d67 # v2
3737
with:
3838
run_id: ${{ github.event.workflow_run.id }}
3939
name: previewbuild
4040
path: webapp
4141

4242
- name: ☁️ Deploy to Netlify
4343
id: netlify
44-
uses: nwtgck/[email protected]
44+
uses: nwtgck/actions-netlify@5da65c9f74c7961c5501a3ba329b8d0912f39c03 # v2.0
4545
with:
4646
publish-dir: webapp
4747
deploy-message: "Deploy from GitHub Actions"
@@ -55,7 +55,7 @@ jobs:
5555
timeout-minutes: 1
5656

5757
- name: 🚦 Update deployment status
58-
uses: bobheadxi/deployments@v1
58+
uses: bobheadxi/deployments@88ce5600046c82542f8246ac287d0a53c461bca3 # v1
5959
if: always()
6060
with:
6161
step: finish

.github/workflows/notify-element-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'matrix-org/matrix-react-sdk'
1313
steps:
1414
- name: Notify element-web repo that a new SDK build is on develop
15-
uses: peter-evans/repository-dispatch@v2
15+
uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588 # v2
1616
with:
1717
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
1818
repository: vector-im/element-web

.github/workflows/static_analysis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ jobs:
6060

6161
- name: Get diff lines
6262
id: diff
63-
uses: Equip-Collaboration/[email protected]
63+
uses: Equip-Collaboration/diff-line-numbers@df70b4b83e05105c15f20dc6cc61f1463411b2a6 # v1.0.0
6464
with:
6565
include: '["\\.tsx?$"]'
6666

6767
- name: Detecting files changed
6868
id: files
69-
uses: futuratrepadeira/[email protected]
69+
uses: futuratrepadeira/changed-files@96d5fd702a6479d573287ef07381ad59acc390ed # v4.0.0
7070
with:
7171
repo-token: ${{ secrets.GITHUB_TOKEN }}
7272
pattern: '^.*\.tsx?$'

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,15 @@ jobs:
3939
env:
4040
JS_SDK_GITHUB_BASE_REF: ${{ inputs.matrix-js-sdk-sha }}
4141

42+
- name: Jest Cache
43+
uses: actions/cache@v3
44+
with:
45+
path: /tmp/jest_cache
46+
key: ${{ hashFiles('**/yarn.lock') }}
47+
4248
- name: Get number of CPU cores
4349
id: cpu-cores
44-
uses: SimenB/github-actions-cpu-cores@v1
50+
uses: SimenB/github-actions-cpu-cores@410541432439795d30db6501fb1d8178eb41e502 # v1
4551

4652
- name: Load metrics reporter
4753
id: metrics
@@ -54,7 +60,8 @@ jobs:
5460
yarn ${{ inputs.disable_coverage != 'true' && 'coverage' || 'test' }} \
5561
--ci \
5662
--reporters github-actions ${{ steps.metrics.outputs.extra-reporter }} \
57-
--max-workers ${{ steps.cpu-cores.outputs.count }}
63+
--max-workers ${{ steps.cpu-cores.outputs.count }} \
64+
--cacheDirectory /tmp/jest_cache
5865
5966
- name: Upload Artifact
6067
if: inputs.disable_coverage != 'true'

.stylelintrc.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
module.exports = {
2-
extends: ["stylelint-config-standard", "stylelint-config-prettier"],
2+
extends: ["stylelint-config-standard"],
33
customSyntax: require("postcss-scss"),
44
plugins: ["stylelint-scss"],
55
rules: {
6-
"color-hex-case": null,
76
"comment-empty-line-before": null,
87
"declaration-empty-line-before": null,
98
"length-zero-no-unit": null,
109
"rule-empty-line-before": null,
1110
"color-hex-length": null,
12-
"max-empty-lines": 1,
13-
"no-eol-whitespace": true,
14-
"number-no-trailing-zeros": null,
15-
"number-leading-zero": null,
16-
"selector-list-comma-newline-after": null,
1711
"at-rule-no-unknown": null,
1812
"no-descending-specificity": null,
1913
"no-empty-first-line": true,
@@ -35,7 +29,6 @@ module.exports = {
3529
"custom-property-pattern": null,
3630
"selector-id-pattern": null,
3731
"keyframes-name-pattern": null,
38-
"string-quotes": null,
3932
"alpha-value-notation": null,
4033
"color-function-notation": null,
4134
"selector-not-notation": null,

0 commit comments

Comments
 (0)