From 3adef16d29abb2b64bb8f35c62fda1cae5a0d0ac Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 20 Jun 2026 23:30:01 -0400 Subject: [PATCH] Init (#4) Reviewed-on: http://git.kundeng.us/phoenix/catapult/pulls/4 --- .gitea/workflows/pr.yml | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .gitea/workflows/pr.yml diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml new file mode 100644 index 0000000..f151df9 --- /dev/null +++ b/.gitea/workflows/pr.yml @@ -0,0 +1,50 @@ +name: catapult PR + +on: + pull_request: + branches: + - v0.3.0 + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + +jobs: + check: + name: Check + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.96 + - uses: Swatinem/rust-cache@v2 + - run: | + cargo check + + fmt: + name: Rustfmt + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.96 + - run: rustup component add rustfmt + - uses: Swatinem/rust-cache@v2 + - run: | + cargo fmt --all -- --check + + clippy: + name: Clippy + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.96 + - run: rustup component add clippy + - uses: Swatinem/rust-cache@v2 + - run: | + cargo clippy -- -D warnings