Skip to content

Move parser validations into checks #130

Move parser validations into checks

Move parser validations into checks #130

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
# permissions:
# contents: read
# actions: write
jobs:
check:
name: Run Lint, Tests, Audit and Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Check formatting
run: cargo fmt -- --check
- name: Lint with Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Run tests
run: cargo test --all-features --verbose
- name: Security audit
run: cargo install cargo-audit && cargo audit
- name: Build
run: cargo build --release
- name: Trigger coverage workflow
if: success()
run: gh workflow run coverage.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}