Add PR checks pipeline (fmt, clippy, test) and split CI config

- Split .woodpecker.yml into .woodpecker/check.yml (PR checks) and .woodpecker/deploy.yml (deploy on push to main)
- Add basic handler test to src/main.rs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mikhail KilinandClaude Opus 4.6 committed 2026-02-16 01:45:22 +03:00
1 parent 1870889abb
commit 4cca68e12b
3 files changed
+31

No files matched your search

+11
View File
@@ -13,3 +13,14 @@ async fn main() {
async fn handler() -> Html<&'static str> {
Html("<h1>Mikhail Kilin</h1>")
}
#[cfg(test)]
mod tests {
use super::*;
#[tokio::test]
async fn test_handler() {
let response = handler().await;
assert!(response.0.contains("Mikhail Kilin"));
}
}