From c7e0d01d84f289eb4b30b9f5b1405e3ec70dc31b Mon Sep 17 00:00:00 2001 From: Basti Lathe Date: Thu, 22 May 2025 02:04:47 +0200 Subject: [PATCH] change --- .gitea/workflows/rust.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/rust.yaml diff --git a/.gitea/workflows/rust.yaml b/.gitea/workflows/rust.yaml new file mode 100644 index 0000000..f656169 --- /dev/null +++ b/.gitea/workflows/rust.yaml @@ -0,0 +1,31 @@ +name: Rust + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + components: rustfmt, clippy + - uses: actions-rs/cargo@v1 + name: Check format + with: + command: fmt + args: --all -- --check + - uses: actions-rs/cargo@v1 + name: Run clippy + with: + command: clippy + args: --all-targets --locked -- -D warnings + - uses: actions-rs/cargo@v1 + name: Run tests + with: + command: test