Skip to content

Provide a type safe config with sane defaults on type level #360

Provide a type safe config with sane defaults on type level

Provide a type safe config with sane defaults on type level #360

name: check-radicle-httpd
on: push
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./radicle-httpd
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: radicle-httpd -> target
- name: Build
run: cargo build --all-features
- name: Run tests
run: cargo test --all-features
docs:
name: Docs
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./radicle-httpd
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: radicle-httpd -> target
- name: Docs
run: cargo doc --all --all-features
lint:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./radicle-httpd
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: radicle-httpd -> target
- name: Run clippy
run: cargo clippy --all --tests
- name: Check formatting
run: cargo fmt --all --check