.github/workflows/rpm-check.yaml #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }}" | |
update_pull_request_status: true | |
create_issue_comment: true | |
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 }} |