Skip to content

Commit 9cf8d2c

Browse files
authored
Run CI for non master branches (#2763)
* ci: run CI on PRs not targeting master * fix warnings when compiling tests
1 parent d581319 commit 9cf8d2c

File tree

6 files changed

+3
-10
lines changed

6 files changed

+3
-10
lines changed

.github/workflows/build-dev-and-ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- master
77
pull_request:
8-
branches:
9-
- master
108
env:
119
CARGO_TERM_COLOR: always
1210
INDEX_HTML_HEAD_REPLACEMENT: <script defer data-domain="dev.graphite.rs" data-api="https://graphite.rs/visit/event" src="https://graphite.rs/visit/script.hash.js"></script>

.github/workflows/comment-clippy-warnings.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Clippy Check
22

33
on:
44
pull_request:
5-
branches: [master]
65
types: [opened, reopened, synchronize, ready_for_review]
76

87
jobs:

.github/workflows/comment-profiling-changes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Profiling Changes
22

33
on:
44
pull_request:
5-
branches: [master]
65

76
env:
87
CARGO_TERM_COLOR: always

.github/workflows/library-rawkit.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
paths:
88
- "libraries/rawkit/**"
99
pull_request:
10-
branches:
11-
- master
1210
paths:
1311
- "libraries/rawkit/**"
1412

.github/workflows/website.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
paths:
88
- website/**
99
pull_request:
10-
branches:
11-
- master
1210
paths:
1311
- website/**
1412
env:

editor/src/node_graph_executor/runtime.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,9 @@ impl NodeRuntime {
227227
}
228228

229229
async fn update_network(&mut self, mut graph: NodeNetwork) -> Result<ResolvedDocumentNodeTypesDelta, String> {
230-
#[cfg(not(test))]
231-
preprocessor::expand_network(&mut graph, &self.substitutions);
230+
if cfg!(not(test)) {
231+
preprocessor::expand_network(&mut graph, &self.substitutions);
232+
}
232233

233234
let scoped_network = wrap_network_in_scope(graph, self.editor_api.clone());
234235

0 commit comments

Comments
 (0)