Files
twofauth-rs/.github/workflows/rust.yml
T
wt cf25e28c28
Rust verification / test (push) Successful in 4m10s
initial commit
2026-10-28 15:59:54 +07:00

20 lines
639 B
YAML

name: Rust verification
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --locked --all-targets -- -D warnings
- run: cargo test --locked
- run: cargo build --locked --release
- run: python3 tests/http_smoke.py target/release/twofauth-rs
- run: python3 -m py_compile tools/inventory.py tools/differential_http.py
- run: docker build -t twofauth-rs:test .