From 78c49df7e9ba92530882ddb163c290318f34be12 Mon Sep 17 00:00:00 2001 From: rustaceanrob Date: Thu, 12 Mar 2026 10:22:29 +0000 Subject: [PATCH] Add minimal CI --- .github/workflows/ci.yml | 19 +++++++++++++++++++ src/main.rs | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..afa0598 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Format Check + run: | + cargo fmt -- --check diff --git a/src/main.rs b/src/main.rs index e8f986c..08a8ae9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use axum::{ Router, body::Body, http::{StatusCode, header}, - response::{AppendHeaders, IntoResponse, Html}, + response::{AppendHeaders, Html, IntoResponse}, routing::get, }; use tokio::fs::File;