Skip to content

Commit 06b9106

Browse files
committed
chore: Move CRD test case to run via trybuild
1 parent 36a7102 commit 06b9106

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

crates/stackable-versioned-macros/tests/crd.rs renamed to crates/stackable-versioned-macros/tests/good/crd.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
#[cfg(feature = "k8s")]
21
use schemars::JsonSchema;
3-
4-
#[cfg(feature = "k8s")]
52
use serde::{Deserialize, Serialize};
63

7-
#[cfg(feature = "k8s")]
84
use stackable_versioned_macros::versioned;
95

10-
#[cfg(feature = "k8s")]
116
#[allow(deprecated)]
12-
#[test]
13-
fn crd() {
7+
fn main() {
148
#[versioned(
159
version(name = "v1alpha1"),
1610
version(name = "v1beta1"),

crates/stackable-versioned-macros/tests/trybuild.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
// mod attributes_enum;
1717
// mod attributes_struct;
1818
// mod basic;
19+
20+
// #[cfg(feature = "k8s")]
21+
// mod crd;
1922
// mod deprecate;
2023
// mod rename;
2124
// mod skip_from_version;

0 commit comments

Comments
 (0)