Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{yml,yaml}]
indent_size = 2
14 changes: 14 additions & 0 deletions .github/workflows/notify-downstream.yaml
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
51 changes: 51 additions & 0 deletions .github/workflows/pr_static_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Static Analysis
on:
pull_request: { }
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"
14 changes: 7 additions & 7 deletions .github/workflows/preview_changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on:
pull_request_target:
types: [ opened, edited, labeled ]
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Preview Changelog
uses: matrix-org/allchange@main
with:
ghToken: ${{ secrets.GITHUB_TOKEN }}
changelog:
runs-on: ubuntu-latest
steps:
- name: Preview Changelog
uses: matrix-org/allchange@main
with:
ghToken: ${{ secrets.GITHUB_TOKEN }}
19 changes: 12 additions & 7 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Test coverage
on:
pull_request: {}
pull_request: { }
push:
branches: [develop, main, master]
branches: [ develop, main, master ]
jobs:
test-coverage:
runs-on: ubuntu-latest
env:
# This must be set for fetchdep.sh to get the right branch
PR_NUMBER: ${{github.event.number}}
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -19,10 +16,18 @@ jobs:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}

- name: Yarn cache
uses: c-hive/gha-yarn-cache@v2
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 install && yarn build && yarn coverage"
run: "yarn coverage"

- name: Upload coverage
uses: codecov/codecov-action@v2
Expand Down