-
Notifications
You must be signed in to change notification settings - Fork 33
37 lines (31 loc) · 1.01 KB
/
docs-validation.yml
File metadata and controls
37 lines (31 loc) · 1.01 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
name: Docs Validation Pipeline
on:
push:
branches: [ main, feat/docs-pipeline-42 ]
pull_request:
branches: [ main ]
jobs:
validate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
targets: wasm32-unknown-unknown
- name: Cache cargo
uses: Swatinem/rust-cache@v2
# 1. Link checking system (Temporarily disabled)
# - name: Lychee Link Checker
# uses: lycheeverse/lychee-action@v1.9.0
# with:
# args: --config lychee.toml "./**/*.md"
# fail: true
# 2. Validate code examples (per workspace member)
- name: Verify Code Snippets (teachlink)
run: cargo test --doc -p teachlink-contract
- name: Verify Code Snippets (governance)
run: cargo test --doc -p governance-contract
- name: Verify Code Snippets (insurance)
run: cargo test --doc -p enhanced-insurance