File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -101,3 +101,37 @@ jobs:
101
101
102
102
- name : Run linter
103
103
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
You can’t perform that action at this time.
0 commit comments