1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
name: "Unit-Tests"
on: [workflow_call]
jobs:
C:
runs-on: ubuntu-latest
container:
image: registry.community.greenbone.net/community/gvm-libs:stable
steps:
- uses: actions/checkout@v6
- name: install dependencies
run: |
sh .github/install-openvas-dependencies.sh
- name: unit-tests
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build -- tests test
Rust:
runs-on: ubuntu-latest
defaults:
run:
working-directory: rust
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-rust
- name: unit-tests
run: cargo test --lib --tests --workspace
- name: experimental unit-tests
run: cargo test --lib --tests --workspace --features experimental
|