From f16f445259c181c4acd341f84cc9c3a8cbfe2817 Mon Sep 17 00:00:00 2001 From: Marvin Date: Tue, 25 Aug 2026 19:57:50 +0000 Subject: [PATCH] add gitea workflow: cargo check, clippy, test, fmt --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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..ba6516f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + - name: cargo check + run: cargo check + - name: cargo clippy + run: cargo clippy -- -D warnings + - name: cargo test + run: cargo test + - name: cargo fmt --check + run: cargo fmt -- --check