Skip to content

Commit 5755a64

Browse files
authored
Add pyth quorom server (#2759)
1 parent 1dd0c91 commit 5755a64

File tree

11 files changed

+7283
-0
lines changed

11 files changed

+7283
-0
lines changed

.github/workflows/ci-quorum.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check Quorum
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/ci-quorum.yml
7+
- apps/quorum/**
8+
push:
9+
branches: [main]
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: apps/quorum
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: Swatinem/rust-cache@v2
19+
with:
20+
workspaces: "apps/quorum -> target"
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: 1.87.0
24+
components: rustfmt, clippy
25+
override: true
26+
- name: Format check
27+
run: cargo fmt --all -- --check
28+
if: success() || failure()
29+
- name: Clippy check
30+
run: cargo clippy --tests -- --deny warnings
31+
if: success() || failure()
32+
- name: Run executor tests
33+
run: cargo test
34+
if: success() || failure()

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@ repos:
6969
entry: cargo +1.82.0 clippy --manifest-path ./apps/hermes/server/Cargo.toml --tests -- --deny warnings
7070
pass_filenames: false
7171
files: apps/hermes
72+
# Hooks for Quorum
73+
- id: cargo-fmt-quorum
74+
name: Cargo format for Quorum
75+
language: "rust"
76+
entry: cargo +1.87.0 fmt --manifest-path ./apps/quorum/Cargo.toml --all
77+
pass_filenames: false
78+
files: apps/quorum
79+
- id: cargo-clippy-quorum
80+
name: Cargo clippy for Quorum
81+
language: "rust"
82+
entry: cargo +1.87.0 clippy --manifest-path ./apps/quorum/Cargo.toml --tests -- --deny warnings
83+
pass_filenames: false
84+
files: apps/quorum
7285
# Hooks for Fortuna
7386
- id: cargo-fmt-fortuna
7487
name: Cargo format for Fortuna

apps/quorum/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore Rust build artifacts
2+
/target

0 commit comments

Comments
 (0)