From b4ee4f3f5f28bf5a865b45bfd1e5e385345f4b79 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Fri, 2 Feb 2024 02:58:26 +0100 Subject: [PATCH] chore: add Gitea Actions workflow --- .gitea/workflows/ci.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..daa3a9c --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,21 @@ +name: CI +on: [push, pull_request] + +jobs: + Test: + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ“ฆ Checkout repository + uses: actions/checkout@v3 + - name: ๐Ÿฆ€ Setup Rust + uses: https://github.com/ATiltedTree/setup-rust@v1 + with: + rust-version: stable + components: clippy + - name: ๐Ÿ“ฅ Setup Rust cache + uses: https://github.com/Swatinem/rust-cache@v2 + + - name: ๐Ÿ“Ž Clippy + run: cargo clippy --all --features=rss -- -D warnings + - name: ๐Ÿงช Test + run: cargo test --features=rss --workspace