-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.01 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
name: ci
on:
push:
branches:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Format Rust
run: cargo fmt --check
- name: Format Shell
run: |
sudo apt-get install shfmt
shfmt -i 4 -d .
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Rust
run: cargo clippy --verbose -- -D warnings
- name: Lint Shell
uses: ludeeus/[email protected]
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Test with coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: codecov.json
fail_ci_if_error: true