Skip to content

chore(deps): bump redis from 1.3.0 to 1.4.0 #702

chore(deps): bump redis from 1.3.0 to 1.4.0

chore(deps): bump redis from 1.3.0 to 1.4.0 #702

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install native database client libraries
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libmysqlclient-dev libpq-dev libsqlite3-dev
- name: Cache cargo registry
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-test-
- name: Run tests
run: cargo test --workspace
- name: Run tests with all features
run: cargo test --workspace --all-features
- name: Run tests with no default features
run: cargo test --workspace --no-default-features
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install native database client libraries
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libmysqlclient-dev libpq-dev libsqlite3-dev
- name: Cache cargo registry
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-lint-
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --workspace --all-features --all-targets -- -D warnings
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install native database client libraries
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libmysqlclient-dev libpq-dev libsqlite3-dev
- name: Cache cargo registry
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build
run: cargo build --workspace
- name: Build with all features
run: cargo build --workspace --all-features
- name: Build release
run: cargo build --workspace --release
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install native database client libraries
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libmysqlclient-dev libpq-dev libsqlite3-dev
- name: Cache cargo registry
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-docs-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-docs-
- name: Build documentation
run: cargo doc --workspace --all-features --no-deps
env:
RUSTDOCFLAGS: -D warnings
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install native database client libraries
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libmysqlclient-dev libpq-dev libsqlite3-dev
- name: Cache cargo registry
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-coverage-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-coverage-
- name: Install cargo-tarpaulin
uses: taiki-e/install-action@cargo-tarpaulin
- name: Run coverage
run: |
# cargo-rustapi spawns nested `cargo` builds in integration tests;
# tarpaulin cannot instrument those subprocesses reliably.
cargo tarpaulin --workspace \
--exclude cargo-rustapi \
--timeout 900 \
--out Html \
--out Xml \
--output-dir coverage
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: |
coverage/tarpaulin-report.html
coverage/cobertura.xml
retention-days: 30
- name: Coverage summary
run: |
if [ -f coverage/tarpaulin-report.html ]; then
pct=$(grep -oP '(?<=<h1>Tarpaulin coverage report</h1>.*?)[0-9.]+%' coverage/tarpaulin-report.html | head -1 || true)
echo "## Coverage" >> "$GITHUB_STEP_SUMMARY"
echo "Download the **coverage-report** artifact for the full HTML report." >> "$GITHUB_STEP_SUMMARY"
if [ -n "$pct" ]; then
echo "Line coverage: **${pct}**" >> "$GITHUB_STEP_SUMMARY"
fi
fi