forked from matrix-org/matrix-js-sdk
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Live location sharing: handle encrypted messages in processBeaconEvents ([\matrix-org#2327](matrix-org#2327)). * Fix race conditions around threads ([\matrix-org#2331](matrix-org#2331)). Fixes element-hq/element-web#21627. * Ignore m.replace relations on state events, they're invalid ([\matrix-org#2306](matrix-org#2306)). Fixes element-hq/element-web#21851. * fix example in readme ([\matrix-org#2315](matrix-org#2315)). * Don't decrement the length count of a thread when root redacted ([\matrix-org#2314](matrix-org#2314)). * Prevent attempt to create thread with id "undefined" ([\matrix-org#2308](matrix-org#2308)). * Update threads handling for replies-to-thread-responses as per MSC update ([\matrix-org#2305](matrix-org#2305)). Fixes element-hq/element-web#19678.
- Loading branch information
Showing
42 changed files
with
1,559 additions
and
880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Notify Downstream Projects | ||
on: | ||
push: | ||
branches: [ develop ] | ||
jobs: | ||
notify-matrix-react-sdk: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify matrix-react-sdk repo that a new SDK build is on develop so it can CI against it | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.ELEMENT_BOT_TOKEN }} | ||
repository: vector-im/element-web | ||
event-type: upstream-sdk-notify |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Pull Request | ||
on: | ||
pull_request_target: | ||
types: [ opened, edited, labeled, unlabeled ] | ||
jobs: | ||
changelog: | ||
name: Preview Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: matrix-org/allchange@main | ||
with: | ||
ghToken: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
enforce-label: | ||
name: Enforce Labels | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
steps: | ||
- uses: yogevbd/enforce-label-action@2.1.0 | ||
with: | ||
REQUIRED_LABELS_ANY: "T-Defect,T-Deprecation,T-Enhancement,T-Task" | ||
BANNED_LABELS: "X-Blocked" | ||
BANNED_LABELS_DESCRIPTION: "Preventing merge whilst PR is marked blocked!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: SonarQube | ||
on: | ||
workflow_run: | ||
workflows: [ "Tests" ] | ||
types: | ||
- completed | ||
jobs: | ||
sonarqube: | ||
name: SonarQube | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action | ||
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess: | ||
- name: Download Coverage Report | ||
uses: actions/github-script@v3.1.0 | ||
with: | ||
script: | | ||
const artifacts = await github.actions.listWorkflowRunArtifacts({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: ${{ github.event.workflow_run.id }}, | ||
}); | ||
const matchArtifact = artifacts.data.artifacts.filter((artifact) => { | ||
return artifact.name == "coverage" | ||
})[0]; | ||
const download = await github.actions.downloadArtifact({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
artifact_id: matchArtifact.id, | ||
archive_format: 'zip', | ||
}); | ||
const fs = require('fs'); | ||
fs.writeFileSync('${{github.workspace}}/coverage.zip', Buffer.from(download.data)); | ||
- name: Extract Coverage Report | ||
run: unzip -d coverage coverage.zip && rm coverage.zip | ||
|
||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Static Analysis | ||
on: | ||
pull_request: { } | ||
push: | ||
branches: [ develop, master ] | ||
jobs: | ||
ts_lint: | ||
name: "Typescript Syntax Check" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' | ||
|
||
- name: Install Deps | ||
run: "yarn install" | ||
|
||
- name: Typecheck | ||
run: "yarn run lint:types" | ||
|
||
js_lint: | ||
name: "ESLint" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' | ||
|
||
- name: Install Deps | ||
run: "yarn install" | ||
|
||
- name: Run Linter | ||
run: "yarn run lint:js" | ||
|
||
docs: | ||
name: "JSDoc Checker" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' | ||
|
||
- name: Install Deps | ||
run: "yarn install" | ||
|
||
- name: Generate Docs | ||
run: "yarn run gendoc" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Tests | ||
on: | ||
pull_request: { } | ||
push: | ||
branches: [ develop, main, master ] | ||
jobs: | ||
jest: | ||
name: Jest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Yarn cache | ||
uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: "yarn install" | ||
|
||
- name: Build | ||
run: "yarn build" | ||
|
||
- name: Run tests with coverage | ||
run: "yarn coverage --ci" | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage | ||
path: | | ||
coverage | ||
!coverage/lcov-report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
sonar.projectKey=matrix-js-sdk | ||
sonar.organization=matrix-org | ||
|
||
# This is the name and version displayed in the SonarCloud UI. | ||
#sonar.projectName=matrix-js-sdk | ||
#sonar.projectVersion=1.0 | ||
|
||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. | ||
#sonar.sources=. | ||
|
||
# Encoding of the source code. Default is default system encoding | ||
#sonar.sourceEncoding=UTF-8 | ||
|
||
sonar.sources=src | ||
sonar.tests=spec | ||
sonar.exclusions=docs,examples,git-hooks | ||
|
||
sonar.typescript.tsconfigPath=./tsconfig.json | ||
sonar.javascript.lcov.reportPaths=coverage/lcov.info | ||
sonar.coverage.exclusions=spec/*.ts | ||
sonar.testExecutionReportPaths=coverage/test-report.xml |
Oops, something went wrong.