Skip to content

Commit 1633acc

Browse files
committed
test: Prevent CI failure due to dependencies
1 parent 754df8b commit 1633acc

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
crate: just
2424
version: '1.34.0'
2525

26-
- run: just test
26+
- run: just test-ci
2727

2828
check-strict:
2929
runs-on: ubuntu-latest

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ proc-macro = true
1616

1717
[features]
1818
default = []
19+
test_smithay = []
1920

2021
[[test]]
2122
name = "tests"

justfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ run *ARGS:
1111
cargo run {{ARGS}}
1212

1313
test *ARGS:
14+
cargo test --features test_smithay {{ARGS}}
15+
16+
test-ci *ARGS:
1417
cargo test {{ARGS}}
1518

1619
nextest-run *ARGS:
17-
cargo nextest run {{ARGS}}
20+
cargo nextest run --features test_smithay {{ARGS}}

tests/test.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ fn ui_test() {
33
let t = trybuild::TestCases::new();
44
t.pass("tests/ui/pass_*.rs");
55
t.compile_fail("tests/ui/fail*.rs");
6+
#[cfg(feature = "test_smithay")]
7+
{
8+
t.pass("tests/ui/smithay/pass_*.rs");
9+
t.compile_fail("tests/ui/smithay/fail*.rs");
10+
}
611
}

0 commit comments

Comments
 (0)