Skip to content

feat: adds a smoke test pipeline for specific component #1

feat: adds a smoke test pipeline for specific component

feat: adds a smoke test pipeline for specific component #1

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:

Check failure on line 31 in .github/workflows/build_component_and_run_tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_component_and_run_tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
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