20 lines
639 B
YAML
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 .
|