-
Notifications
You must be signed in to change notification settings - Fork 216
81 lines (79 loc) · 3.15 KB
/
container-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Container-tests by GitHub Action at Testing Farm
on:
issue_comment:
types:
- created
jobs:
build:
# This job only runs for '[test]' pull request comments by owner, member
name: Container-tests by GitHub Action on Testing Farm service
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- tmt_plan: "fedora"
os_test: "fedora"
context: "Fedora"
compose: "CentOS-7"
api_key: "TF_PUBLIC_API_KEY"
branch: "main"
tmt_repo: "https://github.com/sclorg/sclorg-testing-farm"
- tmt_plan: "centos7"
os_test: "centos7"
context: "CentOS7"
compose: "CentOS-7"
api_key: "TF_PUBLIC_API_KEY"
branch: "main"
tmt_repo: "https://github.com/sclorg/sclorg-testing-farm"
- tmt_plan: "rhel7-docker"
os_test: "rhel7"
context: "RHEL7"
compose: "RHEL-7.9-Released"
api_key: "TF_INTERNAL_API_KEY"
branch: "master"
tf_scope: "private"
tmt_repo: "https://gitlab.cee.redhat.com/platform-eng-core-services/sclorg-tmt-plans"
- tmt_plan: "rhel8-docker"
os_test: "rhel8"
context: "RHEL8"
compose: "RHEL-8.3.1-Released"
api_key: "TF_INTERNAL_API_KEY"
branch: "master"
tmt_repo: "https://gitlab.cee.redhat.com/platform-eng-core-services/sclorg-tmt-plans"
tf_scope: "private"
- tmt_plan: "c9s"
os_test: "c9s"
context: "CentOS Stream 9"
compose: "CentOS-Stream-9"
api_key: "TF_PUBLIC_API_KEY"
branch: "main"
tmt_repo: "https://github.com/sclorg/sclorg-testing-farm"
- tmt_plan: "c8s"
os_test: "c8s"
context: "CentOS Stream 8"
compose: "CentOS-Stream-8"
api_key: "TF_PUBLIC_API_KEY"
branch: "main"
tmt_repo: "https://github.com/sclorg/sclorg-testing-farm"
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: Checkout repo
uses: actions/checkout@v2
with:
ref: "refs/pull/${{ github.event.issue.number }}/head"
# https://github.com/sclorg/testing-farm-as-github-action
- name: Schedule tests on external Testing Farm by Testing-Farm-as-github-action
uses: sclorg/testing-farm-as-github-action@v1
with:
api_key: ${{ secrets[matrix.api_key] }}
git_url: ${{ matrix.tmt_repo }}
git_ref: ${{ matrix.branch }}
tf_scope: ${{ matrix.tf_scope }}
tmt_plan_regex: ${{ matrix.tmt_plan }}
pull_request_status_name: ${{ matrix.context }}
variables: "REPO_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY;REPO_NAME=$GITHUB_REPOSITORY;PR_NUMBER=${{ github.event.issue.number }};OS=${{ matrix.os_test }};TEST_NAME=test"
compose: ${{ matrix.compose }}