fix: correct typo in initializer field and reorganize LogConfig d…
#281
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cache Cargo binaries and dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Install Toolchain | |
| run: rustup toolchain install stable --profile minimal | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install Tools | |
| run: cargo install -q cargo-tarpaulin || true | |
| - name: Check Format | |
| run: cargo fmt --check | |
| - name: Clippy Lint | |
| run: cargo clippy --no-deps | |
| - name: Build and Test | |
| run: | | |
| cargo tarpaulin --coveralls=${{ secrets.COVERALLS_REPO_TOKEN }} |