Skip to content

.github/workflows/rpm-check.yaml #73

.github/workflows/rpm-check.yaml

.github/workflows/rpm-check.yaml #73

Workflow file for this run

# 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 }}