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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 3 additions and 10 deletions

View file

@ -5,8 +5,6 @@ on:
branches:
- master
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
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>

View file

@ -2,7 +2,6 @@ name: Clippy Check
on:
pull_request:
branches: [master]
types: [opened, reopened, synchronize, ready_for_review]
jobs:

View file

@ -2,7 +2,6 @@ name: Profiling Changes
on:
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always

View file

@ -7,8 +7,6 @@ on:
paths:
- "libraries/rawkit/**"
pull_request:
branches:
- master
paths:
- "libraries/rawkit/**"

View file

@ -7,8 +7,6 @@ on:
paths:
- website/**
pull_request:
branches:
- master
paths:
- website/**
env:

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());