Skip to content

Commit

Permalink
Run CI here automatically for every new PR to master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzymadness committed Dec 13, 2022
1 parent ff7f5d6 commit cc9d7c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/container-tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
on:
issue_comment:
types:
- created
pull_request:
branches:
- 'master'
jobs:
distgen-check:
name: "Check distgen generated files"
runs-on: ubuntu-20.04
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
Expand Down Expand Up @@ -50,7 +46,6 @@ jobs:
container-tests:
needs: distgen-check
# This job only runs for '[test]' pull request comments by owner, member
name: "Container tests: ${{ matrix.version }} - ${{ matrix.context }}"
runs-on: ubuntu-20.04
strategy:
Expand Down Expand Up @@ -113,10 +108,6 @@ jobs:
branch: "main"
tmt_repo: "https://github.com/sclorg/sclorg-testing-farm"

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
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/openshift-tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
on:
issue_comment:
types:
- created
pull_request:
branches:
- 'master'

jobs:
distgen-check:
name: "Check distgen generated files"
runs-on: ubuntu-20.04
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
Expand All @@ -28,7 +25,6 @@ jobs:
openshift-tests:
needs: distgen-check
# This job only runs for '[test-all]' or '[test-openshift] pull request comments by owner, member
name: "OpenShift tests: ${{ matrix.version }} - ${{ matrix.context }}"
runs-on: ubuntu-20.04
strategy:
Expand Down Expand Up @@ -82,10 +78,6 @@ jobs:
tmt_repo: "https://gitlab.cee.redhat.com/platform-eng-core-services/sclorg-tmt-plans"
tf_scope: "private"

if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test-openshift]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand Down

0 comments on commit cc9d7c0

Please sign in to comment.