Famedly release v1.135.0_1 #7
Workflow file for this run
This file contains hidden or 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
| name: Schema | |
| on: | |
| pull_request: | |
| paths: | |
| - schema/** | |
| - docs/usage/configuration/config_documentation.md | |
| push: | |
| branches: ["develop", "release-*"] | |
| workflow_dispatch: | |
| jobs: | |
| validate-schema: | |
| name: Ensure Synapse config schema is valid | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: "3.x" | |
| - name: Install check-jsonschema | |
| run: pip install check-jsonschema==0.33.0 | |
| - name: Validate meta schema | |
| run: check-jsonschema --check-metaschema schema/v*/meta.schema.json | |
| - name: Validate schema | |
| run: |- | |
| # Please bump on introduction of a new meta schema. | |
| LATEST_META_SCHEMA_VERSION=v1 | |
| check-jsonschema \ | |
| --schemafile="schema/$LATEST_META_SCHEMA_VERSION/meta.schema.json" \ | |
| schema/synapse-config.schema.yaml | |
| - name: Validate default config | |
| # Populates the empty instance with default values and checks against the schema. | |
| run: |- | |
| echo "{}" | check-jsonschema \ | |
| --fill-defaults --schemafile=schema/synapse-config.schema.yaml - | |
| check-doc-generation: | |
| name: Ensure generated documentation is up-to-date | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: "3.x" | |
| - name: Install PyYAML | |
| run: pip install PyYAML==6.0.2 | |
| - name: Regenerate config documentation | |
| run: | | |
| scripts-dev/gen_config_documentation.py \ | |
| schema/synapse-config.schema.yaml \ | |
| > docs/usage/configuration/config_documentation.md | |
| - name: Error in case of any differences | |
| # Errors if there are now any modified files (untracked files are ignored). | |
| run: 'git diff --exit-code' |