File: tests.yml

package info (click to toggle)
openvas-scanner 23.38.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,468 kB
  • sloc: ansic: 41,621; xml: 6,251; pascal: 3,723; yacc: 1,250; sh: 1,068; makefile: 333; sql: 282; javascript: 12
file content (30 lines) | stat: -rw-r--r-- 842 bytes parent folder | download
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