From 525f9fc21b68cac69e0a563ae99c560392b06f0a Mon Sep 17 00:00:00 2001 From: Sergei Petrosian Date: Mon, 17 Jun 2024 16:59:32 +0200 Subject: [PATCH] Change on: Signed-off-by: Sergei Petrosian --- .github/workflows/tmt.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tmt.yml b/.github/workflows/tmt.yml index b5f6b4154..705aa398d 100644 --- a/.github/workflows/tmt.yml +++ b/.github/workflows/tmt.yml @@ -1,9 +1,15 @@ name: Schedule test on Testing Farm on: - issue_comment: + pull_request: + types: [opened, synchronize, reopened] + merge_group: + branches: + - main types: - - created - + - checks_requested + push: + branches: + - main # The concurrency key is used to prevent multiple workflows from running at the same time concurrency: group: my-concurrency-group @@ -12,16 +18,16 @@ concurrency: jobs: tests: name: Testing Farm tests - # strategy: - # fail-fast: false - # matrix: - # os_test: [ "Fedora-39", "Fedora-40", "CentOS-7", "CentOS-8", "CentOS-9" ] + strategy: + fail-fast: false + matrix: + os_test: [ "Fedora-39", "Fedora-40", "CentOS-7", "CentOS-8", "CentOS-9" ] runs-on: ubuntu-latest # Let's schedule tests only on user request. NOT automatically. # Only repository owner or member can schedule tests # if: | # github.event.issue.pull_request - # && contains(github.event.comment.body, '[citest]') + # && contains(github.event.comment.body, '[test]') # && contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) steps: - name: Schedule test on Testing Farm @@ -30,7 +36,7 @@ jobs: git_url: https://github.com/spetrosi/tft-tests git_ref: add-tmt-tests tmt_path: plans/${{ github.event.repository.name }} - compose: Fedora-40 + compose: ${{ matrix.os_test }} api_key: ${{ secrets.TF_API_KEY_PUB }} - pull_request_status_name: Fedora-40 + pull_request_status_name: ${{ matrix.os_test }} variables: "ANSIBLE_VER=2.16;REPO_NAME=${{ github.event.repository.name }};PR_NUM=${{ github.event.number }}"