File tree 2 files changed +73
-15
lines changed
2 files changed +73
-15
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : ['master', '0.5.x']
6
+ pull_request :
7
+
8
+ jobs :
9
+ test :
10
+ strategy :
11
+ matrix :
12
+ os : [ubuntu-latest, macos-latest, windows-latest]
13
+ rust : [stable, beta]
14
+ exclude :
15
+ - os : macos-latest
16
+ rust : beta
17
+ - os : windows-latest
18
+ rust : beta
19
+
20
+ runs-on : ${{ matrix.os }}
21
+
22
+ steps :
23
+ - uses : actions/checkout@v1
24
+ - uses : actions-rs/toolchain@v1
25
+ with :
26
+ profile : minimal
27
+ toolchain : ${{ matrix.rust }}
28
+ override : true
29
+ - uses : actions-rs/cargo@v1
30
+ with :
31
+ command : build
32
+ args : --workspace --all-targets
33
+ - uses : actions-rs/cargo@v1
34
+ with :
35
+ command : test
36
+ args : --workspace
37
+
38
+ lint :
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - uses : actions/checkout@v1
42
+ - uses : actions-rs/toolchain@v1
43
+ with :
44
+ profile : minimal
45
+ toolchain : stable
46
+ override : true
47
+ components : rustfmt, clippy
48
+ - uses : actions-rs/cargo@v1
49
+ with :
50
+ command : fmt
51
+ args : --all -- --check
52
+ - uses : actions-rs/cargo@v1
53
+ if : always()
54
+ with :
55
+ command : clippy
56
+ args : --workspace --all-targets -- -D warnings
57
+
58
+ coverage :
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+ - uses : actions/checkout@v1
62
+ - uses : actions-rs/toolchain@v1
63
+ with :
64
+ toolchain : nightly
65
+ override : true
66
+ - uses : actions-rs/tarpaulin@v0.1
67
+ - uses : codecov/codecov-action@v1.0.2
68
+ with :
69
+ token : ${{secrets.CODECOV_TOKEN}}
70
+ - uses : actions/upload-artifact@v1
71
+ with :
72
+ name : code-coverage-report
73
+ path : cobertura.xml
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments