Skip to content

Commit

Permalink
Add downstream tsc for element-web (#4508)
Browse files Browse the repository at this point in the history
* Add downstream tsc for element-web

Signed-off-by: Michael Telatynski <[email protected]>

* Update static_analysis.yml

---------

Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy authored Nov 13, 2024
1 parent f5f4091 commit 5c894b3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,37 @@ jobs:

- name: Run linter
run: "yarn run lint:knip"

element-web:
name: Downstream tsc element-web
if: github.event_name == 'merge_group'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
repository: element-hq/element-web

- uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: "lts/*"

- name: Install Dependencies
run: "./scripts/layered.sh"
env:
# tell layered.sh to check out the right sha of the JS-SDK
JS_SDK_GITHUB_BASE_REF: ${{ github.sha }}

- name: Typecheck
run: "yarn run lint:types"

# Hook for branch protection to skip downstream typechecking outside of merge queues
downstream:
name: Downstream Typescript Syntax Check
runs-on: ubuntu-24.04
if: always()
needs:
- element-web
steps:
- if: needs.element-web.result != 'skipped' && needs.element-web.result != 'success'
run: exit 1

0 comments on commit 5c894b3

Please sign in to comment.