-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (38 loc) · 1.24 KB
/
rust-checks.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
name: "Rust Checks"
on:
pull_request:
paths:
- ".github/workflows/rust-checks.yml"
- "rust/**"
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: kuliya - latest
runs-on: ubuntu-latest
env:
CWD: "rust"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- run: cargo install cargo-readme
- run: cargo readme > README.md
working-directory: ${{ env.CWD }}
- run: cargo clippy --all-features -- -Dwarnings
working-directory: ${{ env.CWD }}
- run: cargo build --verbose
working-directory: ${{ env.CWD }}
- name: "is docs updated and generated files are committed"
run: exit $(git status --porcelain | wc -l)
- run: cargo test --verbose
working-directory: ${{ env.CWD }}
- run: cargo test --verbose --lib --bins --tests --features serde_derive
working-directory: ${{ env.CWD }}
- run: cargo test --verbose --lib --bins --tests --no-default-features --features storage
working-directory: ${{ env.CWD }}
- run: cargo test --verbose --all-features
working-directory: ${{ env.CWD }}