From 6a3620ae7db66cca4133e017cfbda8bb1b409451 Mon Sep 17 00:00:00 2001 From: xqtc <tila@heroin.trade> Date: Wed, 2 Apr 2025 20:44:55 +0200 Subject: [PATCH] add workflow --- .forgejo/workflows/uwu.yaml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .forgejo/workflows/uwu.yaml diff --git a/.forgejo/workflows/uwu.yaml b/.forgejo/workflows/uwu.yaml new file mode 100644 index 0000000..5658ded --- /dev/null +++ b/.forgejo/workflows/uwu.yaml @@ -0,0 +1,41 @@ +on: + push: + branches: [main] +jobs: + build: + runs-on: ubuntu-latest + steps: + - id: checkout + name: checkout + uses: actions/checkout@v4 + - uses: https://github.com/actions-rs/toolchain@v1 + with: + toolchain: nightly + - uses: https://github.com/actions-rs/cargo@v1 + with: + command: build + args: --release + - uses: https://github.com/actions-rs/cargo@v1 + with: + command: test + # args: --bin + clippy: + runs-on: ubuntu-latest + steps: + - id: checkout + name: checkout + uses: actions/checkout@v4 + - uses: https://github.com/actions-rs/toolchain@v1 + with: + toolchain: nightly + - uses: https://github.com/actions-rs/cargo@v1 + with: + command: clippy + args: --fix + - id: commit + name: commit + uses: https://github.com/EndBug/add-and-commit@v9 + with: + author_name: "[Clippy]" + +