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
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ jobs:
components: rustfmt, clippy

- name: Setup cache
# Tools under tooling/ are separate Cargo workspaces with their own
# target dir and Cargo.lock, so they need listing explicitly or their
# builds are neither cached nor reflected in the cache key.
uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
tooling/event-monitor

- name: Check formatting
run: cargo fmt --all -- --check
Expand All @@ -41,6 +48,24 @@ jobs:
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings

# tooling/event-monitor declares its own [workspace] table, so every step
# above stops at the root workspace members and never reaches it. Its
# tests run in this job rather than in `test` because clippy has already
# compiled the test targets, and because they need none of that job's
# leanSpec fixtures.
# `--locked` so the committed Cargo.lock is actually enforced: without it
# cargo silently resolves and rewrites the lockfile in CI, and a stale or
# missing entry never fails the build.
- name: Lint tooling
working-directory: tooling/event-monitor
run: |
cargo fmt --all -- --check
cargo clippy --locked --all-targets -- -D warnings

- name: Test tooling
working-directory: tooling/event-monitor
run: cargo test --locked

test:
name: Test
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions tooling/event-monitor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/config.toml
356 changes: 356 additions & 0 deletions tooling/event-monitor/CONTRACT.md

Large diffs are not rendered by default.

Loading