Skip to content

Commit fc389c5

Browse files
authored
Merge pull request #32 from sclorg/add_testing_farm_github_action
Add support for testing nginx-ex repo with several nginx-imagestreams
2 parents 512ccd0 + 6c4cdd8 commit fc389c5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/openshift-tests.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
issue_comment:
3+
types:
4+
- created
5+
jobs:
6+
openshift-tests:
7+
# This job only runs for '[test] pull request comments by owner, member
8+
name: "RHEL8 tests: imagestream ${{ matrix.version }}"
9+
runs-on: ubuntu-20.04
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
version: [ "1.20-ubi7", "1.20-ubi8", "1.22-ubi8", "1.20-ubi9", "1.22-ubi9" ]
14+
15+
if: |
16+
github.event.issue.pull_request
17+
&& contains(github.event.comment.body, '[test]')
18+
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
19+
steps:
20+
- uses: sclorg/testing-farm-as-github-action@main
21+
with:
22+
api_key: ${{ secrets.TF_INTERNAL_API_KEY }}
23+
compose: "RHEL-8.8.0-Nightly"
24+
git_url: "https://gitlab.cee.redhat.com/platform-eng-core-services/sclorg-tmt-plans"
25+
git_ref: "master"
26+
tf_scope: "private"
27+
tmt_plan_regex: "rhel8-openshift-4"
28+
update_pull_request_status: true
29+
pull_request_status_name: "RHEL8-OpenShift-4 - imagestream test ${{ matrix.version }}"
30+
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"

0 commit comments

Comments
 (0)