This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
6,937 additions
and
0 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 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,50 @@ | ||
name: CI for tools | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'tools/**' | ||
pull_request: | ||
paths: | ||
- 'tools/**' | ||
|
||
concurrency: | ||
group: tools-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
syn2mas-lint: | ||
name: Check syn2mas style | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3.5.3 | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3.7.0 | ||
with: | ||
node-version-file: ./tools/syn2mas/.nvmrc | ||
|
||
- name: Install Node dependencies | ||
working-directory: ./tools/syn2mas | ||
run: npm ci | ||
|
||
- name: Lint | ||
working-directory: ./tools/syn2mas | ||
run: npm run lint | ||
|
||
tests-done: | ||
name: Tests done | ||
if: ${{ always() }} | ||
needs: | ||
- syn2mas-lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: matrix-org/done-action@v2 | ||
with: | ||
needs: ${{ toJSON(needs) }} |
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,22 @@ | ||
module.exports = { | ||
plugins: [ | ||
'matrix-org', | ||
], | ||
extends: [ | ||
'plugin:matrix-org/typescript', | ||
], | ||
env: { | ||
browser: false, | ||
node: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-floating-promises': 'error', | ||
'@typescript-eslint/no-misused-promises': 'error', | ||
'@typescript-eslint/promise-function-async': 'error', | ||
'@typescript-eslint/await-thenable': 'error', | ||
}, | ||
}; |
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,2 @@ | ||
node_modules | ||
dist |
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 @@ | ||
18 |
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,16 @@ | ||
# syn2mas - Synapse to Matrix Authentication Service | ||
|
||
Tool to help with the migration of a Matrix Synapse installation to the Matrix Authentication Service. | ||
|
||
The tool has two modes of operation: | ||
|
||
- Advisor mode: Analyses the Synapse configuration and reports on any issues that would prevent a successful migration. | ||
- Migration mode: Performs the migration of the Synapse database into the Matrix Authentication Service database. | ||
|
||
## Usage | ||
|
||
Pre-migration advisor: | ||
|
||
```sh | ||
npm run dev -- advisor --synapseConfigFile homeserver.yaml | ||
``` |
Oops, something went wrong.