Skip to content

test: Benchmark suite for multi-level partitioned tables with DuckDB metadata cache options #191

test: Benchmark suite for multi-level partitioned tables with DuckDB metadata cache options

test: Benchmark suite for multi-level partitioned tables with DuckDB metadata cache options #191

Workflow file for this run

# workflows/lint-rust.yml
#
# Lint Rust
# Lint Rust files using Clippy and Rustfmt.
name: Lint Rust
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "**/*.rs"
- ".github/workflows/lint-rust.yml"
workflow_dispatch:
concurrency:
group: lint-rust-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint-rust:
name: Lint Rust Files
runs-on: depot-ubuntu-latest-2
if: github.event.pull_request.draft == false
strategy:
matrix:
pg_version: [16]
steps:
- name: Checkout Git Repository
uses: actions/checkout@v4
- name: Install & Configure Supported PostgreSQL Version
run: |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update && sudo apt-get install -y postgresql-${{ matrix.pg_version }} postgresql-server-dev-${{ matrix.pg_version }}
- name: Extract pgrx version
run: echo "PGRX_VERSION=$(cargo tree --depth 1 -i pgrx -p pg_analytics | head -n 1 | cut -f2 -dv)" >> $GITHUB_ENV
- name: Install pgrx
run: cargo install --locked cargo-pgrx --version ${{ env.PGRX_VERSION }}
- name: Initialize pgrx for Current PostgreSQL Version
run: cargo pgrx init --pg${{ matrix.pg_version }}=/usr/lib/postgresql/${{ matrix.pg_version }}/bin/pg_config
- name: Run Rustfmt
run: cargo fmt -- --check
- name: Run Clippy
run: cargo clippy --workspace --all-targets -- -D warnings --no-deps
- name: Dependency Check
run: cargo install cargo-machete && cargo machete