Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test everything in CI (except demos that should be excluded) #168

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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