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