From 4342b4d30f09a300f0586988df50409911bcbdf3 Mon Sep 17 00:00:00 2001 From: Sophie Depassio Date: Thu, 3 Oct 2024 09:35:31 +0200 Subject: [PATCH] update workflow: get list of modified tests --- .github/workflows/plugins.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 6b9f6b50cf..bc58634d58 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -13,6 +13,7 @@ on: - '.github/packaging/centreon-plugin.yaml.template' - 'src/**' - 'packaging/**' + - 'tests/**' push: branches: - develop @@ -32,6 +33,8 @@ jobs: runs-on: ubuntu-22.04 outputs: plugins: ${{ steps.get_plugins.outputs.plugins }} + unit_tests: ${{ steps.filter.outputs.unit_tests }} + robot_tests: ${{ steps.filter.outputs.robot_tests }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: @@ -54,6 +57,12 @@ jobs: - added|modified: packaging/** plugins: - added|modified: src/** + robot_tests: + - added|modified: tests/**/*.robot + - added|modified: tests/**/*.json + - added|modified: tests/**/*.snmpwalk + unit_tests: + - added|modified: tests/**/*.t - name: transform to directories run: |