Skip to content

feat: add --json flag to list command #5

feat: add --json flag to list command

feat: add --json flag to list command #5

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
jobs:
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Format check
run: cargo fmt --check
- name: Clippy
run: cargo clippy -- -D warnings
- name: Test
run: cargo test
- name: Coverage
run: |
rustup component add llvm-tools-preview
cargo install cargo-llvm-cov --locked
cargo llvm-cov --fail-under-lines 75
- name: Build release
run: cargo build --release