feat: Add CI/CD workflows for testing and publishing SAL crates
Some checks failed
Test Publishing Setup / Test Publishing Setup (pull_request) Has been cancelled
Some checks failed
Test Publishing Setup / Test Publishing Setup (pull_request) Has been cancelled
- Add a workflow for testing the publishing setup - Add a workflow for publishing SAL crates to crates.io - Improve crate metadata and version management - Add optional dependencies for modularity - Improve documentation for publishing and usage
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
# SAL Kubernetes
|
||||
# SAL Kubernetes (`sal-kubernetes`)
|
||||
|
||||
Kubernetes cluster management and operations for the System Abstraction Layer (SAL).
|
||||
|
||||
## Installation
|
||||
|
||||
Add this to your `Cargo.toml`:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
sal-kubernetes = "0.1.0"
|
||||
```
|
||||
|
||||
## ⚠️ **IMPORTANT SECURITY NOTICE**
|
||||
|
||||
**This package includes destructive operations that can permanently delete Kubernetes resources!**
|
||||
|
@@ -55,6 +55,13 @@ mod rhai_tests {
|
||||
|
||||
#[test]
|
||||
fn test_rhai_function_signatures() {
|
||||
if !should_run_k8s_tests() {
|
||||
println!(
|
||||
"Skipping Rhai function signature tests. Set KUBERNETES_TEST_ENABLED=1 to enable."
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
let mut engine = Engine::new();
|
||||
register_kubernetes_module(&mut engine).unwrap();
|
||||
|
||||
@@ -242,6 +249,13 @@ mod rhai_tests {
|
||||
|
||||
#[test]
|
||||
fn test_rhai_error_handling() {
|
||||
if !should_run_k8s_tests() {
|
||||
println!(
|
||||
"Skipping Rhai error handling tests. Set KUBERNETES_TEST_ENABLED=1 to enable."
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
let mut engine = Engine::new();
|
||||
register_kubernetes_module(&mut engine).unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user