Move parser validations into checks #130
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 | |
| 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 }} |