File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -42,21 +42,26 @@ jobs:
42
42
- name : Execute cargo build
43
43
run : |
44
44
cargo build --manifest-path=./graphql_client/Cargo.toml --features="reqwest" --target wasm32-unknown-unknown
45
+
46
+ rustfmt :
47
+ name : Rustfmt
48
+ runs-on : ubuntu-latest
49
+ steps :
50
+ - uses : actions/checkout@v4
51
+ - uses : dtolnay/rust-toolchain@stable
52
+ - run : cargo fmt --all -- --check
53
+
45
54
lint :
46
- name : Rustfmt and Clippy
55
+ name : Clippy
47
56
runs-on : ubuntu-latest
48
- if : github.repository == 'graphql-rust/graphql-client'
49
57
steps :
50
- - name : Checkout sources
51
- uses : actions/checkout@v4
52
- - name : Install toolchain
53
- uses : dtolnay/rust-toolchain@stable
54
- with :
55
- components : clippy,rustfmt
56
- - name : Execute cargo fmt
57
- run : cargo fmt --all -- --check
58
- - name : Execute cargo clippy
59
- run : cargo clippy --all --all-targets --all-features -- -D warnings
58
+ - uses : actions/checkout@v4
59
+ - uses : dtolnay/rust-toolchain@master
60
+ with :
61
+ toolchain : nightly-2024-01-10
62
+ components : clippy
63
+ - run : cargo clippy --all --all-targets --all-features -- -D warnings
64
+
60
65
prettier :
61
66
name : Check prettier
62
67
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments