Skip to content

Commit

Permalink
Change on:
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Petrosian <[email protected]>
  • Loading branch information
spetrosi committed Jun 17, 2024
1 parent 595ceb8 commit 525f9fc
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/tmt.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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 }}"

0 comments on commit 525f9fc

Please sign in to comment.