File tree Expand file tree Collapse file tree 1 file changed +22
-14
lines changed Expand file tree Collapse file tree 1 file changed +22
-14
lines changed Original file line number Diff line number Diff line change 17
17
steps :
18
18
- uses : actions/checkout@v2
19
19
- uses : Swatinem/rust-cache@v1
20
- - name : clippy
21
- run : cargo clippy --all
22
- - name : fmt
23
- run : cargo fmt --all -- --check
24
20
- name : Setup dependencies (ubuntu)
25
21
if : startsWith(matrix.os, 'ubuntu')
26
22
run :
33
29
env :
34
30
CI : true
35
31
run : make tests
36
- - name : doc
37
- run : cargo doc
38
- - name : Check crate package size (feat. 'cargo diet')
39
- run : |
40
- curl -LSfs https://raw.githubusercontent.com/the-lean-crate/cargo-diet/master/ci/install.sh | \
41
- sh -s -- --git the-lean-crate/cargo-diet --target x86_64-unknown-linux-musl
42
-
43
- # Let's not fail CI for this, it will fail locally often enough, and a crate a little bigger
44
- # than allows is no problem either if it comes to that.
45
- make check-size || true
46
32
47
33
build-and-test-on-windows :
48
34
name : Windows
71
57
command : install
72
58
args : gitoxide
73
59
60
+ lint :
61
+ runs-on : ubuntu-latest
62
+ steps :
63
+ - uses : actions/checkout@v1
64
+ - uses : actions-rs/toolchain@v1
65
+ with :
66
+ profile : default
67
+ toolchain : stable
68
+ override : true
69
+ - name : Run cargo clippy
70
+ run : cargo clippy --all
71
+ - name : Run cargo fmt
72
+ run : cargo fmt --all -- --check
73
+ - name : Run cargo diet
74
+ run : |
75
+ curl -LSfs https://raw.githubusercontent.com/the-lean-crate/cargo-diet/master/ci/install.sh | \
76
+ sh -s -- --git the-lean-crate/cargo-diet --target x86_64-unknown-linux-musl
77
+
78
+ # Let's not fail CI for this, it will fail locally often enough, and a crate a little bigger
79
+ # than allows is no problem either if it comes to that.
80
+ make check-size || true
81
+
74
82
cargo-deny :
75
83
runs-on : ubuntu-latest
76
84
strategy :
You can’t perform that action at this time.
0 commit comments