-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (34 loc) · 1.04 KB
/
Copy pathci-develop.yml
File metadata and controls
43 lines (34 loc) · 1.04 KB
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: CI (develop)
on:
pull_request:
branches: [develop]
push:
branches: [develop]
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: . -> target
- name: Format (check)
run: cargo fmt --all -- --check
- name: Clippy (deny warnings)
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Unit + integration tests
run: cargo test --all-features
- name: Doctests (rustdoc)
run: cargo test --doc
# Temporarily disabled until mdBook doctest dependency issues are resolved
# - name: Install mdBook + plugins
# run: |
# cargo install mdbook mdbook-linkcheck mdbook-admonish mdbook-mermaid || true
# - name: mdBook tests (docs/)
# if: hashFiles('docs/**/*.md') != ''
# run: mdbook test docs