Skip to content

Merge pull request #25 from qntx/dependabot/cargo/opentelemetry-0.32.0 #14

Merge pull request #25 from qntx/dependabot/cargo/opentelemetry-0.32.0

Merge pull request #25 from qntx/dependabot/cargo/opentelemetry-0.32.0 #14

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Format
run: cargo fmt --all --check
- name: Clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --workspace --verbose
- name: Test
run: cargo test --workspace --verbose