Update Event trait with iterators and a Values enum
#52
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: Test | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["**"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check for binary executables | |
| run: | | |
| # Find all files in the repository (excluding .git and target directories) | |
| # Check if they are executable binaries using 'file' command | |
| binaries=$(find . -type f -not -path './.git/*' -not -path './target/*' -exec file {} + | grep -E 'ELF|PE32|Mach-O' || true) | |
| if [ -n "$binaries" ]; then | |
| echo "Error: Binary executables found in repository:" | |
| echo "$binaries" | |
| exit 1 | |
| fi | |
| echo "No binary executables found." | |
| - name: Set up Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Run tests | |
| run: cargo test --verbose | |
| - name: Install cargo-tarpaulin | |
| run: cargo install cargo-tarpaulin | |
| - name: Run coverage check | |
| run: cargo tarpaulin --fail-under 95 | |
| - name: Run Sigma rule repository parsing test | |
| run: cargo test --test sigma_rule_parsing -- --ignored --nocapture |