Compare commits

...

3 Commits

Author SHA1 Message Date
Mikhail Kilin
48c3b33bf4 trigger CI for PR
All checks were successful
ci/woodpecker/pr/check Pipeline was successful
2026-02-16 01:54:19 +03:00
Mikhail Kilin
4cca68e12b 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>
2026-02-16 01:45:22 +03:00
Mikhail Kilin
1870889abb fixes 2026-02-15 14:46:39 +03:00
3 changed files with 32 additions and 1 deletions

20
.woodpecker/check.yml Normal file
View File

@@ -0,0 +1,20 @@
when:
- event: pull_request
steps:
- name: fmt
image: rust:1.84
commands:
- rustup component add rustfmt
- cargo fmt -- --check
- name: clippy
image: rust:1.84
commands:
- rustup component add clippy
- cargo clippy -- -D warnings
- name: test
image: rust:1.84
commands:
- cargo test

View File

@@ -11,5 +11,16 @@ async fn main() {
} }
async fn handler() -> Html<&'static str> { async fn handler() -> Html<&'static str> {
Html("<h1>Mikhail Kilin</h1><p>bcard v2 — deployed via Woodpecker CI + ArgoCD</p>") 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"));
}
} }