Skip to content

Commit cc9d7c0

Browse files
committed
Run CI here automatically for every new PR to master branch
1 parent ff7f5d6 commit cc9d7c0

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

.github/workflows/container-tests.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
on:
2-
issue_comment:
3-
types:
4-
- created
2+
pull_request:
3+
branches:
4+
- 'master'
55
jobs:
66
distgen-check:
77
name: "Check distgen generated files"
88
runs-on: ubuntu-20.04
9-
if: |
10-
github.event.issue.pull_request
11-
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
12-
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
139
steps:
1410
- name: Checkout repo
1511
uses: actions/checkout@v2
@@ -50,7 +46,6 @@ jobs:
5046
5147
container-tests:
5248
needs: distgen-check
53-
# This job only runs for '[test]' pull request comments by owner, member
5449
name: "Container tests: ${{ matrix.version }} - ${{ matrix.context }}"
5550
runs-on: ubuntu-20.04
5651
strategy:
@@ -113,10 +108,6 @@ jobs:
113108
branch: "main"
114109
tmt_repo: "https://github.com/sclorg/sclorg-testing-farm"
115110

116-
if: |
117-
github.event.issue.pull_request
118-
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
119-
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
120111
steps:
121112
- name: Checkout repo
122113
uses: actions/checkout@v2

.github/workflows/openshift-tests.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
on:
2-
issue_comment:
3-
types:
4-
- created
2+
pull_request:
3+
branches:
4+
- 'master'
5+
56
jobs:
67
distgen-check:
78
name: "Check distgen generated files"
89
runs-on: ubuntu-20.04
9-
if: |
10-
github.event.issue.pull_request
11-
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
12-
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
1310
steps:
1411
- name: Checkout repo
1512
uses: actions/checkout@v2
@@ -28,7 +25,6 @@ jobs:
2825
2926
openshift-tests:
3027
needs: distgen-check
31-
# This job only runs for '[test-all]' or '[test-openshift] pull request comments by owner, member
3228
name: "OpenShift tests: ${{ matrix.version }} - ${{ matrix.context }}"
3329
runs-on: ubuntu-20.04
3430
strategy:
@@ -82,10 +78,6 @@ jobs:
8278
tmt_repo: "https://gitlab.cee.redhat.com/platform-eng-core-services/sclorg-tmt-plans"
8379
tf_scope: "private"
8480

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

0 commit comments

Comments
 (0)