Skip to content

Commit

Permalink
Merge pull request #46 from sclorg/add_github_action
Browse files Browse the repository at this point in the history
Add GitHub Action to run imagestream tests in OpenShift
  • Loading branch information
phracek authored Mar 12, 2024
2 parents 42ab6a9 + a72bdb0 commit 98774bb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/openshift-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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: [ "2.4-el7", "2.4-el8", "2.4-ubi8", "2.4-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/tfaga-wrapper@main
with:
os_test: "rhel8"
version: ${{ matrix.version }}
test_case: "openshift-4"
private_api_key: ${{ secrets.TF_INTERNAL_API_KEY }}

0 comments on commit 98774bb

Please sign in to comment.