feat: enrich events with CRI pod metadata #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust nightly (eBPF build) | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly | |
| components: rust-src | |
| - name: Install stable Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install bpf-linker | |
| run: cargo install bpf-linker | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y clang llvm libelf-dev | |
| - name: Build release | |
| run: cargo build --release -p sentinel --bin sentinel --bin grpc-ingest | |
| - name: Run unit tests | |
| run: cargo test --release -p sentinel --bin sentinel -p sentinel-common | |
| - name: Rustfmt | |
| run: cargo +stable fmt --all -- --check |