File tree Expand file tree Collapse file tree 1 file changed +21
-38
lines changed Expand file tree Collapse file tree 1 file changed +21
-38
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
test :
13
- name : Test
14
13
runs-on : ubuntu-latest
15
14
steps :
16
15
- uses : actions/checkout@v2
17
- - uses : actions-rs/toolchain@v1
18
- with :
19
- profile : minimal
20
- toolchain : stable
21
- override : true
22
- - uses : actions-rs/cargo@v1
23
- with :
24
- command : test
25
- args : -- --test-threads=1
16
+ - name : Update local toolchain
17
+ run : |
18
+ rustup update
19
+ rustup component add clippy
26
20
27
- fmt :
28
- name : Rustfmt
29
- runs-on : ubuntu-latest
30
- steps :
31
- - uses : actions/checkout@v2
32
- - uses : actions-rs/toolchain@v1
33
- with :
34
- toolchain : stable
35
- override : true
36
- components : rustfmt
37
- - uses : actions-rs/cargo@v1
38
- with :
39
- command : fmt
40
- args : --all -- --check
21
+ - name : Toolchain info
22
+ run : |
23
+ cargo --version --verbose
24
+ rustc --version
25
+ cargo clippy --version
26
+
27
+ - name : Lint
28
+ run : |
29
+ cd core-dump-handler
30
+ cargo fmt -- --check
31
+ cargo clippy -- -D warnings
32
+
33
+ - name : Test
34
+ run : |
35
+ cd core-dump-handler
36
+ cargo check
37
+ cargo test --release --all
41
38
42
- clippy :
43
- name : Clippy
44
- runs-on : ubuntu-latest
45
- steps :
46
- - uses : actions/checkout@v2
47
- - uses : actions-rs/toolchain@v1
48
- with :
49
- toolchain : stable
50
- override : true
51
- components : clippy
52
- - uses : actions-rs/clippy-check@v1
53
- with :
54
- token : ${{ secrets.GITHUB_TOKEN }}
55
- args : -- -D warnings
You can’t perform that action at this time.
0 commit comments