File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,16 @@ jobs:
59
59
with :
60
60
token : ${{ secrets.GITHUB_TOKEN }}
61
61
args : --all-features
62
- coverage :
62
+ test :
63
63
runs-on : ${{ matrix.os }}
64
64
strategy :
65
65
matrix :
66
66
os : [ macos-latest, windows-latest, ubuntu-latest ]
67
67
toolchain : [ stable, nightly ]
68
+ include :
69
+ - os : ubuntu-latest
70
+ toolchain : stable
71
+ coverage : true
68
72
steps :
69
73
- uses : actions/checkout@v2
70
74
- uses : actions-rs/toolchain@v1
76
80
~/.cargo/registry
77
81
~/.cargo/git
78
82
target
79
- key : ${{ runner.os }}-coverage-1-${{ hashFiles('**/Cargo.lock') }}
83
+ key : ${{ runner.os }}-${{ matrix.toolchain }}-coverage--${{ hashFiles('**/Cargo.lock') }}
84
+ - uses : actions-rs/cargo@v1
85
+ if : !${{ matrix.coverage }}
86
+ with :
87
+ command : test
80
88
-
uses :
actions-rs/[email protected]
89
+ if : ${{ matrix.coverage }}
81
90
- uses : codecov/codecov-action@v1
91
+ if : ${{ matrix.coverage }}
82
92
with :
83
93
fail_ci_if_error : true
84
94
fmt :
You can’t perform that action at this time.
0 commit comments