Skip to content

Commit 3cd90d0

Browse files
committed
fixed tests
1 parent 7db0557 commit 3cd90d0

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,16 @@ jobs:
3535
run: cargo clippy --features docs,math --tests -- -D warnings
3636

3737
- name: Run tests (general)
38-
run: cargo test --features math,docs,ssr
39-
- name: Run tests (unstable web_sys)
4038
run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr
4139
- name: Run tests (axum) use_cookie
42-
run: cargo test --features math,docs,ssr,axum --doc use_cookie
40+
run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr,axum --doc use_cookie
4341
- name: Run tests (axum) use_locale
44-
run: cargo test --features math,docs,ssr,axum --doc use_locale
42+
run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr,axum --doc use_locale
4543
# TODO : at the moment this gives weird compilation errors that have nothing to do with leptos-use
4644
# - name: Run tests (actix) use_cookie
47-
# run: cargo test --features math,docs,ssr,actix --doc use_cookie
45+
# run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr,actix --doc use_cookie
4846
# - name: Run tests (actix) use_locale
49-
# run: cargo test --features math,docs,ssr,actix --doc use_locale
47+
# run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr,actix --doc use_locale
5048

5149
#### mdbook
5250
- name: Install mdbook I

.github/workflows/tests.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,16 @@ jobs:
2828
uses: Swatinem/rust-cache@v2
2929

3030
- name: Run tests (general)
31-
run: cargo test --features math,docs,ssr
32-
33-
- name: Run tests (unstable web_sys)
3431
run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr
3532

3633
- name: Run tests (axum) use_cookie
37-
run: cargo test --features math,docs,ssr,axum --doc use_cookie
34+
run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr,axum --doc use_cookie
3835

3936
- name: Run tests (axum) use_locale
40-
run: cargo test --features math,docs,ssr,axum --doc use_locale
37+
run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr,axum --doc use_locale
4138

4239
- name: Run tests (actix) use_cookie
43-
run: cargo test --features math,docs,ssr,actix --doc use_cookie
40+
run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr,actix --doc use_cookie
4441

4542
- name: Run tests (actix) use_locale
46-
run: cargo test --features math,docs,ssr,actix --doc use_locale
43+
run: RUSTFLAGS="--cfg=web_sys_unstable_apis" cargo test --features math,docs,ssr,actix --doc use_locale

0 commit comments

Comments
 (0)