Skip to content

Commit d421e7f

Browse files
authored
Run complement-crypto in CI (#4197)
* Maybe run complement-crypto * Use existing checkout * Test that things fail if crypto breaks * Fix test; run only on merge queue * Prettier * Maybe get it working in a merge queue
1 parent 9fd051a commit d421e7f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,24 @@ jobs:
7171
disable_coverage: true
7272
matrix-js-sdk-sha: ${{ github.sha }}
7373

74+
complement-crypto:
75+
name: "Run Complement Crypto tests"
76+
if: github.event_name == 'merge_group'
77+
uses: matrix-org/complement-crypto/.github/workflows/single_sdk_tests.yml@main
78+
with:
79+
use_js_sdk: "."
80+
81+
# we need this so the job is reported properly when run in a merge queue
82+
downstream-complement-crypto:
83+
name: Downstream Complement Crypto tests
84+
runs-on: ubuntu-latest
85+
if: always()
86+
needs:
87+
- complement-crypto
88+
steps:
89+
- if: needs.complement-crypto.result != 'skipped' && needs.complement-crypto.result != 'success'
90+
run: exit 1
91+
7492
# Hook for branch protection to skip downstream testing outside of merge queues
7593
# and skip sonarcloud coverage within merge queues
7694
downstream:

0 commit comments

Comments
 (0)