Skip to content

Commit

Permalink
add test script
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Nov 10, 2023
1 parent bf878c7 commit 5427c4b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions code-generator/test-custom-resources.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

### Test custom resources
for mld in ./kube-custom-resources-rs/src/*; do
if [ -f "${mld}/mod.rs" ]; then
module=$(basename "${mld}")
echo "testing ${module}"
cargo check --package kube-custom-resources-rs --features "${module}" --locked
fi
done

0 comments on commit 5427c4b

Please sign in to comment.