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
53
54
55
56
57
name: PR Checks
on:
pull_request:
branches:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev libfreetype6-dev pkg-config
- name: Install cargo-make
uses: davidB/rust-cargo-make@v1
- name: Install cargo-audit
uses: taiki-e/install-action@v2
with:
tool: cargo-audit
- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny
- name: Audit Dependencies
run: cargo make audit
- name: Deny Check
run: cargo make deny
- name: Run Tests
run: cargo make test
- name: Run WASM Tests
run: cargo make test-wasm
- name: Lint
run: cargo make clippy
- name: Format Check
run: cargo make format-check
- name: Architecture Guardrails
run: cargo make architecture-check
- name: Verify Publish Readiness
run: cargo publish --dry-run --locked