Cybersecurity-Projects/PROJECTS/intermediate/ja3-ja4-tls-fingerprinting/.github/workflows/ci.yml

47 lines
1.3 KiB
YAML

# ©AngelaMos | 2026
# ci.yml
name: ci
on:
push:
paths:
- "PROJECTS/intermediate/ja3-ja4-tls-fingerprinting/**"
pull_request:
paths:
- "PROJECTS/intermediate/ja3-ja4-tls-fingerprinting/**"
defaults:
run:
working-directory: PROJECTS/intermediate/ja3-ja4-tls-fingerprinting
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, "1.85"]
steps:
- uses: actions/checkout@v4
- name: Install libpcap
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
- name: Install Rust ${{ matrix.rust }}
run: rustup toolchain install ${{ matrix.rust }} --component clippy rustfmt --profile minimal
- name: Build
run: cargo +${{ matrix.rust }} build --workspace --all-targets
- name: Test
run: cargo +${{ matrix.rust }} test --workspace
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libpcap
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
- name: Install Rust
run: rustup toolchain install stable --component clippy rustfmt --profile minimal
- name: Format
run: cargo fmt --all --check
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings