chore: add python script to target matcher rules #293
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| env: | |
| CARGO_TERM_COLOR: always # Ensures colored output in GitHub Actions logs | |
| jobs: | |
| build-and-test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository with submodules | |
| uses: actions/checkout@v4.1.4 | |
| with: | |
| submodules: recursive # This will fetch all submodules recursively | |
| - name: Setup Rust toolchain | |
| run: | | |
| rustup toolchain install 1.89.0 --profile minimal | |
| rustup component add clippy | |
| rustup component add rustfmt | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y linux-headers-$(uname -r) libbpf-dev clang llvm libssl-dev pkg-config | |
| - name: Run tests | |
| run: | | |
| cargo test --features test-bins |