Skip to content

chore: make fmt happy #192

chore: make fmt happy

chore: make fmt happy #192

Workflow file for this run

name: build kafkas
on:
pull_request:
push:
branches:
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
channel: nightly, stable
profile: minimal
components: rustfmt, clippy
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo
- name: Check code format
run: cargo +nightly fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo
- uses: taiki-e/install-action@nextest
- name: Test
run: cargo nextest run --no-fail-fast --all-features