-
Notifications
You must be signed in to change notification settings - Fork 25
53 lines (45 loc) · 1.17 KB
/
build_component_and_run_tests.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
run-name: Components - Build ${{ inputs.components }}
name: Build and Run Tests
on:
workflow_dispatch:
inputs:
source_reference:
description: |
Branch from wazuh/wazuh-agent repository to use.
required: true
components:
description: 'Select agent components/s to tested'
required: true
type: choice
- agent_info
- communicator
- configuration_parser
- multitype_queue
- sqlite_manager
workflow_call:
inputs:
source_reference:
type: string
required: true
components:
type: string
required: true
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout wazuh/wazuh-agent repository
uses: actions/checkout@v4
with:
repository: wazuh/wazuh-agent
ref: ${{ inputs.source_reference }}
- name: Build component
run: |
ls
cd src/agent/${{ inputs.components }}
mkdir build && cd build
cmake .. -DBUILD_TESTS=ON
make
- name: Run the tests
run: |
cd src/agent/${{ inputs.components }}/build && ctest -V