Files
mini-redis/.github/workflows/ci.yml
Bryan Garza 6cd697afe9 Add (optional) OpenTelemetry + Xray integration (#95) (#96)
This introduces all the necessary code to be able to send traces to
AWS Xray via `tracing-opentelemetry`. It can be optionally enabled
using the `xray` feature defined on this crate.

Also update the README.md with instructions on how to enable and use
this.
2022-05-18 09:13:19 -07:00

28 lines
569 B
YAML

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Build with OTel feature
run: cargo build --verbose --features otel
- name: Run tests
run: cargo test --verbose
- name: Run tests with OTel feature
run: cargo test --verbose --features otel
- name: rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check