Skip to content

Commit 1d194d1

Browse files
committed
Add testing workflow for fastapi projects
1 parent b3f3b86 commit 1d194d1

File tree

2 files changed

+602
-17
lines changed

2 files changed

+602
-17
lines changed

justfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,24 @@
1717
just --justfile {{justfile()}} fmt
1818
echo check
1919
just --justfile {{justfile()}} check
20+
echo check fastapi features
21+
just --justfile {{justfile()}} check-fastapi
2022
echo clippy
2123
just --justfile {{justfile()}} clippy
24+
echo clippy ffastapi features
25+
just --justfile {{justfile()}} clippy-fastapi
2226

2327
@clippy:
24-
cargo clippy --all-features
28+
cargo clippy
29+
30+
@clippy-fastapi:
31+
cargo clippy -F fastapi
2532

2633
@check:
27-
cargo check --all-features
34+
cargo check
35+
36+
@check-fastapi:
37+
cargo check -F fastapi
2838

2939
@fmt:
3040
cargo fmt --all
@@ -35,6 +45,12 @@
3545
@test-fastapi:
3646
cargo insta test -F fastapi
3747

48+
@test-all:
49+
echo testing no fastapi feature
50+
just --justfile {{justfile()}} test
51+
echo testing with fastapi feature
52+
just --justfile {{justfile()}} test-fastapi
53+
3854
@test-review:
3955
cargo insta test --review
4056

0 commit comments

Comments
 (0)