redis-asyncx 0.1.0

An asynchronous Redis client library and a Redis CLI built in Rust.
Documentation
name: Rust CI

on:
  push:

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
  cancel-in-progress: true

jobs:
  runtime:
    name: Lint, format, build, and test
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Cache Cargo dependencies
        uses: actions/cache@v4
        with:
          path: |
            ~/.cargo/registry
            ~/.cargo/git
          key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}

      - name: Cargo check
        run: cargo check --all --tests --benches

      - name: Format check
        run: cargo fmt --all -- --check

      - name: Lint with Clippy
        run: cargo clippy --all --examples --tests --benches -- -D warnings
      
      - name: Run tests
        run: cargo test --verbose

      - name: Build
        run: cargo build --release