Packet Filter support #545
Workflow file for this run
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: Continuous integration | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths-ignore: | |
- "*.md" | |
- "LICENSE" | |
pull_request: | |
branches: | |
- main | |
- dev | |
paths-ignore: | |
- "*.md" | |
- "LICENSE" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: [self-hosted, Linux, X64] | |
container: rust:1 | |
steps: | |
- name: Debug | |
run: echo ${{ github.ref_name }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install dependencies | |
run: apt-get update && apt-get -y install protobuf-compiler libnftnl-dev libmnl-dev | |
- name: Check format | |
run: | | |
rustup component add rustfmt | |
cargo fmt -- --check | |
- name: Run clippy linter | |
run: | | |
rustup component add clippy | |
cargo clippy --all-targets --all-features -- -D warnings | |
- name: Run cargo deny | |
uses: EmbarkStudios/cargo-deny-action@v2 | |
- name: Run tests | |
run: cargo test --locked --no-fail-fast |