-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (41 loc) · 1.14 KB
/
validate.yaml
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
name: Rust (sanity checks)
on:
pull_request:
push:
branches:
- main
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Validate cargo format
run: cargo fmt -- --check
- name: Install clippy
run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all
tarpaulin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install deps
run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config cmake zlib1g-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: install tarpaulin
run: cargo install cargo-tarpaulin -f
- name: run tarpaulin
run: cargo tarpaulin --out Xml
- uses: codecov/codecov-action@v3
with:
#token: ${{secrets.CODECOV_TOKEN}} not needed for public repos
file: ./cobertura.xml