Skip to content

Commit

Permalink
CI: add workflow for lints (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
netrome authored May 13, 2024
1 parent 996548d commit 2bc7674
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ jobs:

- name: Run tests
run: make test

- name: Run lints
run: make lint
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: install | emily-client
&& pnpm --recursive test

lint: install | emily-client
cargo clippy \
cargo clippy -- -D warnings \
&& pnpm --recursive run lint

clean:
Expand Down
2 changes: 1 addition & 1 deletion blocklist-client/src/api/handlers.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::client::client;
use crate::client;
use crate::common::{Error, ErrorResponse};
use crate::config::RiskAnalysisConfig;
use reqwest::Client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub async fn check_address(

let response = client
.get(&api_url)
.header("Token", format!("{}", config.api_key))
.header("Token", config.api_key.to_string())
.send()
.await?;

Expand Down
1 change: 0 additions & 1 deletion blocklist-client/src/client/mod.rs

This file was deleted.

0 comments on commit 2bc7674

Please sign in to comment.