|
| 1 | +name: Container tests |
| 2 | + |
1 | 3 | on:
|
2 |
| - issue_comment: |
3 |
| - types: |
4 |
| - - created |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - 'master' |
5 | 7 | jobs:
|
6 | 8 | distgen-check:
|
7 | 9 | name: "Check distgen generated files"
|
8 | 10 | 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) |
13 | 11 | steps:
|
14 | 12 | - name: Checkout repo
|
15 | 13 | uses: actions/checkout@v2
|
16 | 14 | with:
|
17 |
| - ref: "refs/pull/${{ github.event.issue.number }}/head" |
18 | 15 | submodules: true
|
19 | 16 |
|
20 | 17 | - name: Check distgen generated files
|
|
50 | 47 |
|
51 | 48 | container-tests:
|
52 | 49 | needs: distgen-check
|
53 |
| - # This job only runs for '[test]' pull request comments by owner, member |
54 | 50 | name: "Container tests: ${{ matrix.version }} - ${{ matrix.context }}"
|
55 | 51 | runs-on: ubuntu-20.04
|
56 | 52 | strategy:
|
@@ -113,15 +109,9 @@ jobs:
|
113 | 109 | branch: "main"
|
114 | 110 | tmt_repo: "https://github.com/sclorg/sclorg-testing-farm"
|
115 | 111 |
|
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) |
120 | 112 | steps:
|
121 | 113 | - name: Checkout repo
|
122 | 114 | uses: actions/checkout@v2
|
123 |
| - with: |
124 |
| - ref: "refs/pull/${{ github.event.issue.number }}/head" |
125 | 115 |
|
126 | 116 | - name: Prepare needed variables
|
127 | 117 | shell: bash
|
@@ -157,5 +147,5 @@ jobs:
|
157 | 147 | tf_scope: ${{ matrix.tf_scope }}
|
158 | 148 | tmt_plan_regex: ${{ matrix.tmt_plan }}
|
159 | 149 | pull_request_status_name: "${{ matrix.context }} - ${{ matrix.version }}"
|
160 |
| - variables: "REPO_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY;REPO_NAME=$GITHUB_REPOSITORY;PR_NUMBER=${{ github.event.issue.number }};SINGLE_VERSION=${{ matrix.version }};OS=${{ matrix.os_test }};TEST_NAME=test" |
| 150 | + variables: "REPO_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY;REPO_NAME=$GITHUB_REPOSITORY;PR_NUMBER=${{ github.event.number }};SINGLE_VERSION=${{ matrix.version }};OS=${{ matrix.os_test }};TEST_NAME=test" |
161 | 151 | compose: ${{ matrix.compose }}
|
0 commit comments