Merge pull request #23 from CirclesUBI/workflow/test

fix(workflow/test): Formatting and Linting are mandatory
This commit is contained in:
jon r 2023-03-28 19:15:56 +02:00 committed by GitHub
commit 4846da2816
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 8 deletions

View file

@ -27,13 +27,13 @@ jobs:
run: echo ~/.foundry/bin/ >> $GITHUB_PATH
- name: Install Dependencies
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
run: cargo build --verbose
- name: Download safes
run: wget -q -c https://rpc.circlesubi.id/pathfinder-db/capacity_graph.db
- name: Run tests
run: cargo test --verbose
- name: Lint
run: cargo clippy --all --all-features -- -D warnings
- name: Format
run: cargo fmt --check --verbose

3
.gitignore vendored
View file

@ -8,3 +8,6 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# Capacity graph runtime state
capacity_graph.db

View file

@ -11,13 +11,13 @@ fn main() {
.nth(2)
.unwrap_or_else(|| "10".to_string())
.parse::<usize>()
.unwrap();;
.unwrap();
let thread_count = env::args()
.nth(3)
.unwrap_or_else(|| "4".to_string())
.parse::<u64>()
.unwrap();;
.unwrap();
server::start_server(&listen_at, queue_size, thread_count);
}