File tree 1 file changed +20
-4
lines changed
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,23 @@ name: CI
4
4
on : [push, pull_request]
5
5
6
6
jobs :
7
+ format :
8
+ runs-on : ubuntu-latest
9
+ env :
10
+ CARGO_TERM_COLOR : always
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : actions-rs/toolchain@v1
14
+ with :
15
+ profile : minimal
16
+ toolchain : stable
17
+ components : rustfmt
18
+ - uses : Swatinem/rust-cache@v1
19
+ - name : Check Rust Formatting
20
+ run : cargo fmt --check
21
+
7
22
test :
23
+ needs : format
8
24
runs-on : ubuntu-latest
9
25
env :
10
26
CARGO_TERM_COLOR : always
18
34
- uses : Swatinem/rust-cache@v1
19
35
- uses : taiki-e/install-action@cargo-llvm-cov
20
36
- uses : taiki-e/install-action@nextest
21
- - name : Run tests
37
+ - name : Run Tests
22
38
run : cargo llvm-cov nextest
23
39
24
40
build :
37
53
profile : minimal
38
54
toolchain : stable
39
55
- uses : Swatinem/rust-cache@v1
40
- - name : Build torrust tracker
56
+ - name : Build Torrust Tracker
41
57
run : cargo build --release
42
- - name : Upload build artifact
58
+ - name : Upload Build Artifact
43
59
uses : actions/upload-artifact@v2
44
60
with :
45
61
name : torrust-tracker
49
65
needs : build
50
66
runs-on : ubuntu-latest
51
67
steps :
52
- - name : Download build artifact
68
+ - name : Download Build Artifact
53
69
uses : actions/download-artifact@v2
54
70
with :
55
71
name : torrust-tracker
You can’t perform that action at this time.
0 commit comments