Skip to content

Commit 900c432

Browse files
authored
Merge pull request #449 from mathstuf/gha-ignore-forks
gha: only run on the main repo
2 parents 33b8a34 + a3c47f7 commit 900c432

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
os: [ubuntu-latest, macos-latest]
1919
name: Cargo test
2020
runs-on: ${{ matrix.os }}
21+
if: "github.repository == 'graphql-rust/graphql-client'"
2122
steps:
2223
- name: Checkout sources
2324
uses: actions/checkout@v2
@@ -32,6 +33,7 @@ jobs:
3233
wasm_build:
3334
name: Cargo build for wasm
3435
runs-on: ubuntu-latest
36+
if: "github.repository == 'graphql-rust/graphql-client'"
3537
steps:
3638
- name: Checkout sources
3739
uses: actions/checkout@v2
@@ -48,6 +50,7 @@ jobs:
4850
lint:
4951
name: Rustfmt and Clippy
5052
runs-on: ubuntu-latest
53+
if: "github.repository == 'graphql-rust/graphql-client'"
5154
steps:
5255
- name: Checkout sources
5356
uses: actions/checkout@v2
@@ -65,6 +68,7 @@ jobs:
6568
prettier:
6669
name: Check prettier
6770
runs-on: ubuntu-latest
71+
if: "github.repository == 'graphql-rust/graphql-client'"
6872
steps:
6973
- name: Checkout sources
7074
uses: actions/checkout@v2

graphql_client/tests/operation_selection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ pub struct Heights;
1616
)]
1717
pub struct Echo;
1818

19-
const HEIGHTS_RESPONSE: &str = r##"{"mountainHeight": 224, "buildingHeight": 12}"##;
20-
const ECHO_RESPONSE: &str = r##"{"echo": "tiramisù"}"##;
19+
const HEIGHTS_RESPONSE: &str = r#"{"mountainHeight": 224, "buildingHeight": 12}"#;
20+
const ECHO_RESPONSE: &str = r#"{"echo": "tiramisù"}"#;
2121

2222
#[test]
2323
fn operation_selection_works() {

graphql_client_codegen/src/schema/json_conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ fn ingest_object(schema: &mut Schema, object: &mut FullType) {
247247
})
248248
.collect()
249249
})
250-
.unwrap_or_else(Vec::new),
250+
.unwrap_or_default(),
251251
fields: field_ids,
252252
};
253253

0 commit comments

Comments
 (0)