-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (57 loc) · 2.32 KB
/
rpm-check.yaml
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
# Action is used for testing if RPM packages are installed on the specific host
# As well as files are checked if mandatory files are present on the host
# The action garants that host is prepared for testing containers
# under https://github.com/sclorg organization
on:
issue_comment:
types:
- created
jobs:
build:
name: "Check for presence mandatory RPMs on ${{ matrix.context }} host"
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
os: ["fedora", "gpu-fedora", "c9s", "c10s"]
include:
- os: "fedora"
context: "Fedora"
compose: "Fedora-41"
tmt_hardware: ""
- os: "gpu-fedora"
context: "Fedora with GPU"
compose: "Fedora-41"
tmt_hardware: '{"gpu": {"device-name": "GK210 (Tesla K80)", "vendor-name": "NVIDIA"}}'
- os: "c9s"
context: "CentOS Stream 9"
compose: "CentOS-Stream-9"
tmt_hardware: ""
- os: "c10s"
context: "CentOS Stream 10"
compose: "CentOS-Stream-10"
tmt_hardware: ""
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
id: github_action
uses: sclorg/testing-farm-as-github-action@main
with:
api_key: ${{ secrets.TF_PUBLIC_API_KEY }}
git_url: "https://github.com/sclorg/sclorg-testing-farm"
git_ref: "main"
tf_scope: "public"
tmt_context: "trigger=code"
tmt_plan_regex: "${{ matrix.os }}"
tmt_hardware: "${{ matrix.tmt_hardware }}"
pull_request_status_name: "RPM check for presence in ${{ matrix.context }}"
variables: "REPO_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY;REPO_NAME=$GITHUB_REPOSITORY;PR_NUMBER=${{ github.event.issue.number }};OS=${{ matrix.os }}"
compose: ${{ matrix.compose }}