-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (63 loc) · 1.87 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on: push
jobs:
rustfmt:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: rustfmt
- run: cargo fmt --all -- --check
strategy:
matrix:
os:
- macOS-latest
- ubuntu-latest
- windows-latest
clippy:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: clippy
- run: cargo clippy --workspace --all-targets --all-features -- -D warnings
strategy:
matrix:
os:
- macOS-latest
- ubuntu-latest
- windows-latest
tests:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- run: cargo test --workspace
strategy:
matrix:
os:
- macOS-latest
- ubuntu-latest
- windows-latest
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/[email protected]
with:
crate: cargo-llvm-cov
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: llvm-tools-preview
- run: cargo llvm-cov --lcov --workspace --output-path lcov.info
- uses: codecov/codecov-action@v1
with:
file: lcov.info
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info