@@ -18,60 +18,52 @@ jobs:
1818 os : [ubuntu-latest, macos-latest]
1919 name : Cargo test
2020 runs-on : ${{ matrix.os }}
21- if : " github.repository == 'graphql-rust/graphql-client'"
21+ if : github.repository == 'graphql-rust/graphql-client'
2222 steps :
2323 - name : Checkout sources
24- uses : actions/checkout@v2
24+ uses : actions/checkout@v4
2525 - name : Install toolchain
26- uses : actions-rs/ toolchain@v1
26+ uses : dtolnay/rust- toolchain@master
2727 with :
28- profile : minimal
2928 toolchain : ${{ matrix.rust }}
30- override : true
3129 - name : Execute cargo test
3230 run : cargo test --all --tests --examples
3331 wasm_build :
3432 name : Cargo build for wasm
3533 runs-on : ubuntu-latest
36- if : " github.repository == 'graphql-rust/graphql-client'"
34+ if : github.repository == 'graphql-rust/graphql-client'
3735 steps :
3836 - name : Checkout sources
39- uses : actions/checkout@v2
37+ uses : actions/checkout@v4
4038 - name : Install toolchain
41- uses : actions-rs/ toolchain@v1
39+ uses : dtolnay/rust- toolchain@stable
4240 with :
43- profile : minimal
44- toolchain : stable
45- override : true
4641 target : wasm32-unknown-unknown
4742 - name : Execute cargo build
4843 run : |
4944 cargo build --manifest-path=./graphql_client/Cargo.toml --features="reqwest" --target wasm32-unknown-unknown
5045 lint :
5146 name : Rustfmt and Clippy
5247 runs-on : ubuntu-latest
53- if : " github.repository == 'graphql-rust/graphql-client'"
48+ if : github.repository == 'graphql-rust/graphql-client'
5449 steps :
5550 - name : Checkout sources
56- uses : actions/checkout@v2
51+ uses : actions/checkout@v4
5752 - name : Install toolchain
58- uses : actions-rs/ toolchain@v1
53+ uses : dtolnay/rust- toolchain@stable
5954 with :
60- profile : minimal
61- toolchain : stable
62- override : true
6355 components : clippy,rustfmt
6456 - name : Execute cargo fmt
6557 run : cargo fmt --all -- --check
6658 - name : Execute cargo clippy
67- run : cargo clippy --tests --examples -- -D warnings
59+ run : cargo clippy --all --all-targets --all-features -- -D warnings
6860 prettier :
6961 name : Check prettier
7062 runs-on : ubuntu-latest
71- if : " github.repository == 'graphql-rust/graphql-client'"
63+ if : github.repository == 'graphql-rust/graphql-client'
7264 steps :
7365 - name : Checkout sources
74- uses : actions/checkout@v2
66+ uses : actions/checkout@v4
7567 - name : Install node.js
7668 run : sudo apt update && sudo apt-get install -y nodejs
7769 - name : Execute prettier
0 commit comments