Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows-disabled/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}
21 changes: 21 additions & 0 deletions .woodpecker/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
steps:
test:
image: rust:1-slim
commands:
- cargo test
- cargo clippy -- -D warnings
- cargo fmt --check

readme-lint:
image: rust:1-slim
when:
event: pull_request
commands:
- 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
- |
git fetch origin main:main
changed=$(git diff --name-only main HEAD | grep '\.md$' || true)
if [ -n "$changed" ]; then
/tmp/heraldstack-mcp/tools/readme-lint/target/release/readme-lint $changed
fi
Loading