Skip to content

Commit

Permalink
feat: add magic feature in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Apr 15, 2024
1 parent a1b3aa1 commit 0dbaf34
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
run: |
cargo test --features authenticode --target=${{matrix.target}} -- --test-threads=1 --ignored
- name: Run optional module tests
if: ${{ matrix.build == 'linux' }}
run: |
cargo test --features magic --target=${{matrix.target}}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -213,10 +218,10 @@ jobs:
source <(cargo llvm-cov show-env --export-prefix)
cargo build -p boreal-test-helpers
# Run the normal tests
cargo test --features authenticode
cargo test --features magic,authenticode
# And run the super user tests
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="sudo -E" cargo \
test --features authenticode -- --ignored
test --features magic,authenticode -- --ignored
# Finally, generate the report
cargo llvm-cov report --lcov --output-path lcov.info \
--ignore-filename-regex boreal-test-helpers/src/main.rs
Expand Down Expand Up @@ -258,16 +263,17 @@ jobs:
- name: Run tests
env:
YARA_CRYPTO_LIB: openssl
run: cargo test --no-default-features ${{matrix.features}}
run: cargo test ${{matrix.features}}

strategy:
fail-fast: false
matrix:
features: [
"",
"--features=hash",
"--features=object",
"--features=process",
"--features=hash,object",
"--features=object,authenticode"
"--no-default-features",
"--no-default-features --features=hash",
"--no-default-features --features=object",
"--no-default-features --features=process",
"--no-default-features --features=hash,object",
"--no-default-features --features=object,authenticode",
"--all-features"
]

0 comments on commit 0dbaf34

Please sign in to comment.