Skip to content

Commit

Permalink
chore: wasm check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
maan2003 committed Jul 1, 2024
1 parent 5923e75 commit 54db4e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ jobs:
- name: '[m], indexeddb stores, no crypto'
cmd: matrix-sdk-indexeddb-stores-no-crypto

- name: '[m]-sdk-ui'
cmd: matrix-sdk-ui

steps:
- name: Checkout the repo
uses: actions/checkout@v4
Expand Down
10 changes: 10 additions & 0 deletions xtask/src/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ enum WasmFeatureSet {
/// Equivalent to `indexeddb-all-features`, `indexeddb-crypto` and
/// `indexeddb-state`
Indexeddb,
/// Check `matrix-sdk-ui` crate
MatrixSdkUi,
}

impl CiArgs {
Expand Down Expand Up @@ -312,6 +314,10 @@ fn run_wasm_checks(cmd: Option<WasmFeatureSet>) -> Result<()> {
WasmFeatureSet::IndexeddbState,
"-p matrix-sdk-indexeddb --no-default-features --features state-store",
),
(
WasmFeatureSet::MatrixSdkUi,
"-p matrix-sdk-ui --no-default-features --features matrix-sdk/js,matrix-sdk/rustls-tls,e2e-encryption",
),
]);

let run = |arg_set: &str| {
Expand Down Expand Up @@ -374,6 +380,10 @@ fn run_wasm_pack_tests(cmd: Option<WasmFeatureSet>) -> Result<()> {
WasmFeatureSet::IndexeddbState,
("crates/matrix-sdk-indexeddb", "--no-default-features --features state-store"),
),
(
WasmFeatureSet::MatrixSdkUi,
("crates/matrix-sdk-ui", "--no-default-features --features matrix-sdk/js,matrix-sdk/rustls-tls,e2e-encryption"),
),
]);

let run = |(folder, arg_set): (&str, &str)| {
Expand Down

0 comments on commit 54db4e7

Please sign in to comment.