feat: container struct

This commit is contained in:
DavidOnTop 2023-12-29 22:51:06 +01:00
parent e788e4aa13
commit 6dc79f7e29
No known key found for this signature in database
GPG key ID: FAB914DDC2F180EB
3 changed files with 362 additions and 254 deletions

View file

@ -2,9 +2,13 @@ name: Rust
on:
push:
branches: [ "main" ]
branches:
- "main"
- "feat/*"
pull_request:
branches: [ "main" ]
branches:
- "main"
- "feat/*"
permissions:
contents: read
@ -24,3 +28,31 @@ jobs:
run: cargo test --verbose --all-features --workspace --tests --bins --lib
- name: Run doctests
run: cargo test --verbose --all-features --workspace --doc
clippy_check:
name: Clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- name: Run clippy
run: cargo clippy -- -D warnings
format:
name: Format
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Run cargo fmt
run: cargo fmt --all -- --check