Skip to content

Commit

Permalink
Test everything (except demos that should be excluded)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Oct 11, 2024
1 parent d19c943 commit 51ec926
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Build tests
run: cargo test --verbose --package fidget --no-run
run: cargo test --verbose --no-run
- name: Run crate tests
run: cargo test --verbose --package fidget --lib
run: cargo test --verbose --lib
- name: Run doc tests
run: cargo test --verbose --package fidget --doc
run: cargo test --verbose --doc

test-windows:
runs-on: windows-latest
Expand Down Expand Up @@ -61,16 +61,16 @@ jobs:
env:
CARGO_HOME: ${{ env.DEV_DRIVE }}/.cargo
RUSTUP_HOME: ${{ env.DEV_DRIVE }}/.rustup
run: cargo test --verbose --package fidget --no-run
run: cargo test --verbose --no-run
- name: Run crate tests
working-directory: ${{ env.DEV_DRIVE }}/fidget
env:
CARGO_HOME: ${{ env.DEV_DRIVE }}/.cargo
RUSTUP_HOME: ${{ env.DEV_DRIVE }}/.rustup
run: cargo test --verbose --package fidget --lib
run: cargo test --verbose --lib
- name: Run doc tests
working-directory: ${{ env.DEV_DRIVE }}/fidget
env:
CARGO_HOME: ${{ env.DEV_DRIVE }}/.cargo
RUSTUP_HOME: ${{ env.DEV_DRIVE }}/.rustup
run: cargo test --verbose --package fidget --doc
run: cargo test --verbose --doc
5 changes: 5 additions & 0 deletions demos/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ workspace-hack = { version = "0.1", path = "../../workspace-hack" }
[features]
jit = ["fidget/jit"]
default = ["jit"]

[[bin]]
name = "fidget-cli"
test = false
doctest = false
5 changes: 5 additions & 0 deletions demos/constraints/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ env_logger.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures.workspace = true

[[bin]]
name = "constraints"
test = false
doctest = false
5 changes: 5 additions & 0 deletions demos/viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ workspace-hack = { version = "0.1", path = "../../workspace-hack" }
[features]
default = ["jit"]
jit = ["fidget/jit"]

[[bin]]
name = "fidget-viewer"
test = false
doctest = false

0 comments on commit 51ec926

Please sign in to comment.