-
-
Notifications
You must be signed in to change notification settings - Fork 26
37 lines (35 loc) · 1014 Bytes
/
crates.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
name: crates
on:
push:
paths:
- 'crates/**'
branches-ignore:
- 'master'
jobs:
test:
name: crates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy, rustfmt
- uses: taiki-e/install-action@nextest
- name: crates lint
run: |
cargo fmt -p pg -p types -p httpclient -- --check
cargo clippy -p pg -p types -p httpclient -- -Dwarnings
- name: install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: crates unit tests
run: cargo test -p pg -p types -p httpclient
- name: crates/types coverage report
run: |
make rust-coverage RUST_PKG=types
- name: crates/pg coverage report
run: |
make rust-coverage RUST_PKG=pg
- name: crates/httpclient coverage report
run: |
make rust-coverage RUST_PKG=httpclient