Skip to content

Commit 5c894b3

Browse files
authored
Add downstream tsc for element-web (#4508)
* Add downstream tsc for element-web Signed-off-by: Michael Telatynski <[email protected]> * Update static_analysis.yml --------- Signed-off-by: Michael Telatynski <[email protected]>
1 parent f5f4091 commit 5c894b3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/static_analysis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,37 @@ jobs:
101101

102102
- name: Run linter
103103
run: "yarn run lint:knip"
104+
105+
element-web:
106+
name: Downstream tsc element-web
107+
if: github.event_name == 'merge_group'
108+
runs-on: ubuntu-24.04
109+
steps:
110+
- uses: actions/checkout@v4
111+
with:
112+
repository: element-hq/element-web
113+
114+
- uses: actions/setup-node@v4
115+
with:
116+
cache: "yarn"
117+
node-version: "lts/*"
118+
119+
- name: Install Dependencies
120+
run: "./scripts/layered.sh"
121+
env:
122+
# tell layered.sh to check out the right sha of the JS-SDK
123+
JS_SDK_GITHUB_BASE_REF: ${{ github.sha }}
124+
125+
- name: Typecheck
126+
run: "yarn run lint:types"
127+
128+
# Hook for branch protection to skip downstream typechecking outside of merge queues
129+
downstream:
130+
name: Downstream Typescript Syntax Check
131+
runs-on: ubuntu-24.04
132+
if: always()
133+
needs:
134+
- element-web
135+
steps:
136+
- if: needs.element-web.result != 'skipped' && needs.element-web.result != 'success'
137+
run: exit 1

0 commit comments

Comments
 (0)