Merge pull request #23 from CirclesUBI/workflow/test
fix(workflow/test): Formatting and Linting are mandatory
This commit is contained in:
commit
4846da2816
3 changed files with 11 additions and 8 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -27,13 +27,13 @@ jobs:
|
||||||
run: echo ~/.foundry/bin/ >> $GITHUB_PATH
|
run: echo ~/.foundry/bin/ >> $GITHUB_PATH
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: curl -L https://foundry.paradigm.xyz | bash && foundryup
|
run: curl -L https://foundry.paradigm.xyz | bash && foundryup
|
||||||
|
- name: Format
|
||||||
|
run: cargo fmt --check --verbose
|
||||||
|
- name: Lint
|
||||||
|
run: cargo clippy --all --all-features -- -D warnings
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Download safes
|
- name: Download safes
|
||||||
run: wget -q -c https://rpc.circlesubi.id/pathfinder-db/capacity_graph.db
|
run: wget -q -c https://rpc.circlesubi.id/pathfinder-db/capacity_graph.db
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
- name: Lint
|
|
||||||
run: cargo clippy --all --all-features -- -D warnings
|
|
||||||
- name: Format
|
|
||||||
run: cargo fmt --check --verbose
|
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -8,3 +8,6 @@ Cargo.lock
|
||||||
|
|
||||||
# These are backup files generated by rustfmt
|
# These are backup files generated by rustfmt
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
|
||||||
|
# Capacity graph runtime state
|
||||||
|
capacity_graph.db
|
||||||
|
|
|
@ -11,13 +11,13 @@ fn main() {
|
||||||
.nth(2)
|
.nth(2)
|
||||||
.unwrap_or_else(|| "10".to_string())
|
.unwrap_or_else(|| "10".to_string())
|
||||||
.parse::<usize>()
|
.parse::<usize>()
|
||||||
.unwrap();;
|
.unwrap();
|
||||||
|
|
||||||
let thread_count = env::args()
|
let thread_count = env::args()
|
||||||
.nth(3)
|
.nth(3)
|
||||||
.unwrap_or_else(|| "4".to_string())
|
.unwrap_or_else(|| "4".to_string())
|
||||||
.parse::<u64>()
|
.parse::<u64>()
|
||||||
.unwrap();;
|
.unwrap();
|
||||||
|
|
||||||
server::start_server(&listen_at, queue_size, thread_count);
|
server::start_server(&listen_at, queue_size, thread_count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue