Add README badges and CI checks
Rust / Test (push) Failing after 9m5s

This commit is contained in:
Кобелев Андрей Андреевич
2026-08-21 09:40:19 +05:00
parent 37cdba4898
commit 7ba5275957
2 changed files with 92 additions and 38 deletions
+49
View File
@@ -0,0 +1,49 @@
name: Rust
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85
with:
components: rustfmt, clippy
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --all -- --check
- name: Check
run: cargo check --all-targets --all-features
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Test
run: cargo test --all-features
- name: Documentation
env:
RUSTDOCFLAGS: "-D warnings"
run: cargo doc --no-deps --all-features
- name: Package
run: cargo package --allow-dirty