File tree 1 file changed +57
-0
lines changed
1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches : [master]
4
+ pull_request :
5
+
6
+ name : CI
7
+
8
+ jobs :
9
+ rustfmt :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : actions-rs/toolchain@v1
14
+ with :
15
+ profile : minimal
16
+ toolchain : stable
17
+ override : true
18
+ components : rustfmt
19
+ - run : cargo fmt -- --check
20
+
21
+ clippy :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ - uses : actions-rs/toolchain@v1
26
+ with :
27
+ profile : minimal
28
+ toolchain : nightly
29
+ override : true
30
+ components : clippy
31
+ - run : cargo clippy -- -D warnings
32
+
33
+ check :
34
+ name : Check ${{ matrix.toolchain }} / ${{ matrix.triple.target }}
35
+ runs-on : ubuntu-latest
36
+ strategy :
37
+ fail-fast : false
38
+ matrix :
39
+ toolchain :
40
+ - stable
41
+ - nightly
42
+ steps :
43
+ - uses : actions/checkout@v2
44
+ - name : Install toolchain
45
+ uses : actions-rs/toolchain@v1
46
+ with :
47
+ profile : minimal
48
+ toolchain : ${{ matrix.toolchain }}
49
+ override : true
50
+ - name : Check build
51
+ run : cargo build
52
+ - name : Run tests
53
+ run : cargo test
54
+ - name : Build doc
55
+ run : cargo doc
56
+ - name : Run tests (with "html" feature)
57
+ run : cargo test --features "html"
You can’t perform that action at this time.
0 commit comments