From 6bfe36edb51a530ab6efe3e1ef49608432be2f9f Mon Sep 17 00:00:00 2001 From: Manielle <75130972+Manielle@users.noreply.github.com> Date: Mon, 19 Oct 2026 19:01:28 +0000 Subject: [PATCH] take meta-feeder-sdk from gitea, and run the tests on every push github.com/worph/meta-feeder-sdk answers 404, so a clean build could not fetch the dependency; the same tag lives on gitea-watch at the same commit (v1.7.0 = 027917c8), so only the source URL changes, in Cargo.toml and Cargo.lock. The repo had only the image workflow; test.yml runs cargo test --locked and clippy -D warnings, like meta-read's. --- .gitea/workflows/test.yml | 25 +++++++++++++++++++++++++ Cargo.lock | 2 +- feeder-plugin/book-feeder/Cargo.toml | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..d183458 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,25 @@ +# Runs the feeder's tests on every push. The repo had only the image workflow, +# so nothing checked a change before it shipped. + +name: Test + +on: + push: + branches: ["**"] + +jobs: + rust: + name: cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # rust-toolchain.toml pins the channel (with clippy); rustup installs it on + # first use, so the action only has to provide rustup itself. + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - uses: Swatinem/rust-cache@v2 + - name: cargo test + run: cargo test --locked + - name: cargo clippy + run: cargo clippy --all-targets -- -D warnings diff --git a/Cargo.lock b/Cargo.lock index cf35e8a..a525e17 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -792,7 +792,7 @@ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" [[package]] name = "meta-feeder-sdk" version = "1.7.0" -source = "git+https://github.com/worph/meta-feeder-sdk?tag=v1.7.0#027917c8cffe7ca43dadcf3b426cc5f69ecc443a" +source = "git+https://gitea-watch.nsl.sh/metastar/meta-feeder-sdk?tag=v1.7.0#027917c8cffe7ca43dadcf3b426cc5f69ecc443a" dependencies = [ "anyhow", "async-trait", diff --git a/feeder-plugin/book-feeder/Cargo.toml b/feeder-plugin/book-feeder/Cargo.toml index f11f3f0..93c2dd9 100644 --- a/feeder-plugin/book-feeder/Cargo.toml +++ b/feeder-plugin/book-feeder/Cargo.toml @@ -24,7 +24,7 @@ path = "src/main.rs" # vendored copy this used to point at had already drifted behind the shared SDK # (no `RateBudget`, a capped card cid). The rest of the fleet pins the same # way; see meta-feeder-anilist's manifest. -meta-feeder-sdk = { git = "https://github.com/worph/meta-feeder-sdk", tag = "v1.7.0" } +meta-feeder-sdk = { git = "https://gitea-watch.nsl.sh/metastar/meta-feeder-sdk", tag = "v1.7.0" } tokio = { version = "1.40", features = ["full"] } axum = { version = "0.7", features = ["json"] }