Skip to content

Commit 78c49df

Browse files
committed
Add minimal CI
1 parent 2bb89ee commit 78c49df

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions-rust-lang/setup-rust-toolchain@v1
17+
- name: Format Check
18+
run: |
19+
cargo fmt -- --check

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use axum::{
88
Router,
99
body::Body,
1010
http::{StatusCode, header},
11-
response::{AppendHeaders, IntoResponse, Html},
11+
response::{AppendHeaders, Html, IntoResponse},
1212
routing::get,
1313
};
1414
use tokio::fs::File;

0 commit comments

Comments
 (0)