Skip to content

chore: switch greptimedb-ingester to crates.io and upgrade related de… #8

chore: switch greptimedb-ingester to crates.io and upgrade related de…

chore: switch greptimedb-ingester to crates.io and upgrade related de… #8

Workflow file for this run

name: develop
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
branches:
- main
workflow_dispatch:
env:
RUST_TOOLCHAIN: 1.94
jobs:
toml:
name: Toml Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install taplo
run: cargo +stable install taplo-cli --version ^0.10 --locked
- name: Run taplo
run: taplo format --check --option "indent_string= "
typos:
name: Typos Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check typos
uses: crate-ci/typos@master
clang-format:
name: Clang Format Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install clang-format
run: sudo apt-get update && sudo apt-get install -y clang-format
- name: Check clang-format
run: find c/src -iname '*.h' -o -iname '*.c' | xargs clang-format -style=file --dry-run -Werror
cargo-check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: ffi
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Protobuf
uses: arduino/setup-protoc@v2
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy
- name: Check format
run: cargo fmt --check
- name: Check clippy
run: cargo clippy --workspace --all-targets -- -D warnings -D clippy::print_stdout -D clippy::print_stderr
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Check test
run: cargo nextest run