Fail CI on lint step
This commit is contained in:
parent
9356def325
commit
227c0acd6c
2 changed files with 8 additions and 6 deletions
|
|
@ -13,11 +13,11 @@ jobs:
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: cargo install --path .
|
run: cargo install --path .
|
||||||
- name: formatting
|
- name: cargo check
|
||||||
run: cargo fmt -- --check --files-with-diff
|
|
||||||
- name: lints
|
|
||||||
run: cargo clippy -- -Dwarnings
|
|
||||||
- name: cargo
|
|
||||||
run: cargo check --all-targets
|
run: cargo check --all-targets
|
||||||
|
- name: format
|
||||||
|
run: cargo fmt -- --check
|
||||||
|
- name: lint
|
||||||
|
run: cargo clippy -- -Dwarnings
|
||||||
- name: test
|
- name: test
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,9 @@ async fn main() {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.route("/", get(|| handlers::navigation::nexus("index.html"))
|
.route(
|
||||||
|
"/",
|
||||||
|
get(|| handlers::navigation::nexus("index.html"))
|
||||||
.post(handlers::navigation::search),
|
.post(handlers::navigation::search),
|
||||||
)
|
)
|
||||||
.route(
|
.route(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue