Run CI for non master branches (#2763)

* ci: run CI on PRs not targeting master

* fix warnings when compiling tests
This commit is contained in:
Firestar99
2025-06-27 14:40:54 +02:00
committed by GitHub
parent d581319ee8
commit 9cf8d2cd05
6 changed files with 3 additions and 10 deletions

View File

@@ -227,8 +227,9 @@ impl NodeRuntime {
}
async fn update_network(&mut self, mut graph: NodeNetwork) -> Result<ResolvedDocumentNodeTypesDelta, String> {
#[cfg(not(test))]
preprocessor::expand_network(&mut graph, &self.substitutions);
if cfg!(not(test)) {
preprocessor::expand_network(&mut graph, &self.substitutions);
}
let scoped_network = wrap_network_in_scope(graph, self.editor_api.clone());