-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from sclorg/add_testing_farm_as_github_action
Adding Testing Farm as GitHub Action for running tests
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
jobs: | ||
openshift-tests: | ||
# This job only runs for '[test] pull request comments by owner, member | ||
name: "RHEL8 tests: imagestream ${{ matrix.version }}" | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: [ "7.4-ubi8", "8.0-ubi8", "8.1-ubi9", "8.0-ubi9" ] | ||
|
||
if: | | ||
github.event.issue.pull_request | ||
&& contains(github.event.comment.body, '[test]') | ||
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association) | ||
steps: | ||
- uses: sclorg/testing-farm-as-github-action@main | ||
with: | ||
api_key: ${{ secrets.TF_INTERNAL_API_KEY }} | ||
compose: "RHEL-8.8.0-Nightly" | ||
git_url: "https://gitlab.cee.redhat.com/platform-eng-core-services/sclorg-tmt-plans" | ||
git_ref: "master" | ||
tf_scope: "private" | ||
tmt_plan_regex: "rhel8-openshift-4" | ||
update_pull_request_status: true | ||
pull_request_status_name: "RHEL8-OpenShift-4 - imagestream test ${{ matrix.version }}" | ||
variables: "REPO_URL=${{ github.server_url }}/${{ github.repository }};REPO_NAME=${{ github.repository }};PR_NUMBER=${{ github.event.issue.number }};OS=rhel8;SINGLE_VERSION=${{ matrix.version }};TEST_NAME=test-openshift-4" |