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
34 changes: 34 additions & 0 deletions .github/workflows/ci-quorum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check Quorum

on:
pull_request:
paths:
- .github/workflows/ci-quorum.yml
- apps/quorum/**
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/quorum
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "apps/quorum -> target"
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.87.0
components: rustfmt, clippy
override: true
- name: Format check
run: cargo fmt --all -- --check
if: success() || failure()
- name: Clippy check
run: cargo clippy --tests -- --deny warnings
if: success() || failure()
- name: Run executor tests
run: cargo test
if: success() || failure()
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ repos:
entry: cargo +1.82.0 clippy --manifest-path ./apps/hermes/server/Cargo.toml --tests -- --deny warnings
pass_filenames: false
files: apps/hermes
# Hooks for Quorum
- id: cargo-fmt-quorum
name: Cargo format for Quorum
language: "rust"
entry: cargo +1.87.0 fmt --manifest-path ./apps/quorum/Cargo.toml --all
pass_filenames: false
files: apps/quorum
- id: cargo-clippy-quorum
name: Cargo clippy for Quorum
language: "rust"
entry: cargo +1.87.0 clippy --manifest-path ./apps/quorum/Cargo.toml --tests -- --deny warnings
pass_filenames: false
files: apps/quorum
# Hooks for Fortuna
- id: cargo-fmt-fortuna
name: Cargo format for Fortuna
Expand Down
2 changes: 2 additions & 0 deletions apps/quorum/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore Rust build artifacts
/target
Loading
Loading