@@ -18,60 +18,52 @@ jobs:
18
18
os : [ubuntu-latest, macos-latest]
19
19
name : Cargo test
20
20
runs-on : ${{ matrix.os }}
21
- if : " github.repository == 'graphql-rust/graphql-client'"
21
+ if : github.repository == 'graphql-rust/graphql-client'
22
22
steps :
23
23
- name : Checkout sources
24
- uses : actions/checkout@v2
24
+ uses : actions/checkout@v4
25
25
- name : Install toolchain
26
- uses : actions-rs/ toolchain@v1
26
+ uses : dtolnay/rust- toolchain@master
27
27
with :
28
- profile : minimal
29
28
toolchain : ${{ matrix.rust }}
30
- override : true
31
29
- name : Execute cargo test
32
30
run : cargo test --all --tests --examples
33
31
wasm_build :
34
32
name : Cargo build for wasm
35
33
runs-on : ubuntu-latest
36
- if : " github.repository == 'graphql-rust/graphql-client'"
34
+ if : github.repository == 'graphql-rust/graphql-client'
37
35
steps :
38
36
- name : Checkout sources
39
- uses : actions/checkout@v2
37
+ uses : actions/checkout@v4
40
38
- name : Install toolchain
41
- uses : actions-rs/ toolchain@v1
39
+ uses : dtolnay/rust- toolchain@stable
42
40
with :
43
- profile : minimal
44
- toolchain : stable
45
- override : true
46
41
target : wasm32-unknown-unknown
47
42
- name : Execute cargo build
48
43
run : |
49
44
cargo build --manifest-path=./graphql_client/Cargo.toml --features="reqwest" --target wasm32-unknown-unknown
50
45
lint :
51
46
name : Rustfmt and Clippy
52
47
runs-on : ubuntu-latest
53
- if : " github.repository == 'graphql-rust/graphql-client'"
48
+ if : github.repository == 'graphql-rust/graphql-client'
54
49
steps :
55
50
- name : Checkout sources
56
- uses : actions/checkout@v2
51
+ uses : actions/checkout@v4
57
52
- name : Install toolchain
58
- uses : actions-rs/ toolchain@v1
53
+ uses : dtolnay/rust- toolchain@stable
59
54
with :
60
- profile : minimal
61
- toolchain : stable
62
- override : true
63
55
components : clippy,rustfmt
64
56
- name : Execute cargo fmt
65
57
run : cargo fmt --all -- --check
66
58
- name : Execute cargo clippy
67
- run : cargo clippy --tests --examples -- -D warnings
59
+ run : cargo clippy --all --all-targets --all-features -- -D warnings
68
60
prettier :
69
61
name : Check prettier
70
62
runs-on : ubuntu-latest
71
- if : " github.repository == 'graphql-rust/graphql-client'"
63
+ if : github.repository == 'graphql-rust/graphql-client'
72
64
steps :
73
65
- name : Checkout sources
74
- uses : actions/checkout@v2
66
+ uses : actions/checkout@v4
75
67
- name : Install node.js
76
68
run : sudo apt update && sudo apt-get install -y nodejs
77
69
- name : Execute prettier
0 commit comments