Run tests when GH Actions or Workflows change

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-02-20 07:23:04 +00:00 committed by Pedro Algarvio
parent 8b543dd204
commit 30e900bdee
5 changed files with 21 additions and 0 deletions

View file

@ -79,6 +79,11 @@ jobs:
- added|modified:
- doc/**
- *doc_requirements
workflows:
- added|modified:
- .github/actions/**/action.yml
- .github/workflows/*.yml
- .github/workflows/templates/*.yml.jinja2
salt:
- added|modified: &salt_added_modified
- setup.py

View file

@ -77,6 +77,11 @@ jobs:
- added|modified:
- doc/**
- *doc_requirements
workflows:
- added|modified:
- .github/actions/**/action.yml
- .github/workflows/*.yml
- .github/workflows/templates/*.yml.jinja2
salt:
- added|modified: &salt_added_modified
- setup.py

View file

@ -77,6 +77,11 @@ jobs:
- added|modified:
- doc/**
- *doc_requirements
workflows:
- added|modified:
- .github/actions/**/action.yml
- .github/workflows/*.yml
- .github/workflows/templates/*.yml.jinja2
salt:
- added|modified: &salt_added_modified
- setup.py

View file

@ -102,6 +102,11 @@ jobs:
- added|modified:
- doc/**
- *doc_requirements
workflows:
- added|modified:
- .github/actions/**/action.yml
- .github/workflows/*.yml
- .github/workflows/templates/*.yml.jinja2
salt:
- added|modified: &salt_added_modified
- setup.py

View file

@ -306,6 +306,7 @@ def define_jobs(ctx: Context, event_name: str, changed_files: pathlib.Path):
required_test_changes: set[str] = {
changed_files_contents["testrun"],
changed_files_contents["workflows"],
changed_files_contents["golden_images"],
}
if required_test_changes == {"false"}: