mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
- Add release read API to httpd as cargo feature enabled by default - Add Releases and Release views to the UI - Filter out redacted artifacts and mark delegate authors - Degrade releases UI gracefully with older radicle-httpd versions - Hide fully redacted releases - Skip releases in the list endpoint when every artifact was redacted by its author or a delegate, so no empty release entries are shown - Keep them reachable with showRedacted=true and by release id - Add e2e tests for the release routes Co-Authored-By: Rūdolfs Ošiņš <rudolfs@osins.org>
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
name: check-rust
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
|
|
jobs:
|
|
test:
|
|
name: Build & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@1.97.1
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: ". -> target"
|
|
- name: Build (all features)
|
|
run: cargo build --workspace --all-features
|
|
env:
|
|
RUSTFLAGS: -D warnings
|
|
- name: Test (all features)
|
|
run: cargo test --workspace --all-features
|
|
- name: Test httpd without search
|
|
run: cargo test -p radicle-httpd
|
|
|
|
docs:
|
|
name: Docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@1.97.1
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: ". -> target"
|
|
- name: Docs
|
|
run: cargo doc --workspace --all-features
|
|
env:
|
|
RUSTDOCFLAGS: -D warnings
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@1.97.1
|
|
with:
|
|
components: rustfmt, clippy
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: ". -> target"
|
|
- name: Run clippy
|
|
run: cargo clippy --workspace --all-features --tests
|
|
env:
|
|
RUSTFLAGS: -D warnings
|
|
# Nothing else compiles the artifacts-off path, so it would rot.
|
|
- name: Run clippy on httpd without default features
|
|
run: cargo clippy -p radicle-httpd --no-default-features --tests
|
|
env:
|
|
RUSTFLAGS: -D warnings
|
|
- name: Check formatting
|
|
run: cargo fmt --all -- --check
|