Skip to content

Commit 50461a3

Browse files
committed
build: Add lint, analyse, and test tasks to Taskfile for improved code quality
Signed-off-by: Eden Reich <eden.reich@gmail.com>
1 parent e069fad commit 50461a3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Taskfile.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,18 @@ tasks:
55
desc: Download OpenAPI specification
66
cmds:
77
- curl -o openapi.yaml https://raw.githubusercontent.com/inference-gateway/inference-gateway/refs/heads/main/openapi.yaml
8+
9+
lint:
10+
desc: Run linter
11+
cmds:
12+
- cargo fmt --all -- --check
13+
14+
analyse:
15+
desc: Run static analysis
16+
cmds:
17+
- cargo clippy --all-targets --all-features -- -D warnings
18+
19+
test:
20+
desc: Run tests
21+
cmds:
22+
- cargo test --all-targets --all-features

0 commit comments

Comments
 (0)