-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.19 KB
/
ci.yml
File metadata and controls
42 lines (39 loc) · 1.19 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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test
- run: cargo clippy -- -D warnings
- run: cargo fmt --check
readme-lint:
name: readme-lint
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: . -> target
cache-key: readme-lint
- name: build readme-lint
run: |
git clone https://github.com/BryanChasko/heraldstack-mcp.git /tmp/heraldstack-mcp
cargo build --release --manifest-path /tmp/heraldstack-mcp/tools/readme-lint/Cargo.toml
- uses: tj-actions/changed-files@v44
id: changed
with:
files: '**/*.md'
- if: steps.changed.outputs.any_changed == 'true'
run: /tmp/heraldstack-mcp/tools/readme-lint/target/release/readme-lint ${{ steps.changed.outputs.all_changed_files }}