From ca34deb00a043de309e3db1e4a0a0d9345b7f9c1 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 | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tmt.yml b/.github/workflows/tmt.yml index b5f6b4154..3a710ad70 100644 --- a/.github/workflows/tmt.yml +++ b/.github/workflows/tmt.yml @@ -3,7 +3,6 @@ on: issue_comment: types: - created - # The concurrency key is used to prevent multiple workflows from running at the same time concurrency: group: my-concurrency-group @@ -12,17 +11,17 @@ 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(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) + if: | + github.event.issue.pull_request + && (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]')) + && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association) steps: - name: Schedule test on Testing Farm uses: sclorg/testing-farm-as-github-action@v2 @@ -30,7 +29,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 }}"