Skip to content
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
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ jobs:
- name: Build
run: cargo build --locked --workspace

check-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48 # v1.13.0
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
- name: Cargo check
run: cargo check --locked --all-targets --all-features --workspace

test:
needs: build
runs-on: macos-15 # For snapshot testing.
Expand Down
13 changes: 7 additions & 6 deletions egui_json_tree/tests/image_snapshot_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ fn render_object_search_results() {
{
*harness.state_mut() = search_default_expand;
harness.run();
if let Err(err) = harness.try_snapshot(format!(
let filename = format!(
"default_expand_search_results/{}_{:?}",
idx, search_default_expand
)) {
)
.replace("\"", "");
if let Err(err) = harness.try_snapshot(filename) {
snapshot_errors.push(err);
}
}
Expand Down Expand Up @@ -121,10 +123,9 @@ fn render_object_with_changing_default_expand_automatically_resets_expanded() {
{
*harness.state_mut() = default_expand;
harness.run();
if let Err(err) = harness.try_snapshot(format!(
"changing_default_expand/{}_{:?}",
idx, default_expand
)) {
let filename =
format!("changing_default_expand/{}_{:?}", idx, default_expand).replace("\"", "");
if let Err(err) = harness.try_snapshot(filename) {
snapshot_errors.push(err);
}
}
Expand Down
Loading