|
88 | 88 | update_pull_request_status: "true" |
89 | 89 | create_github_summary: "true" |
90 | 90 | variables: "REPO_URL=${{ github.server_url }}/${{ github.repository }};PR_HEAD=${{ github.event.pull_request.head.sha }};" |
| 91 | + container-test-init: |
| 92 | + runs-on: ubuntu-latest |
| 93 | + |
| 94 | + |
| 95 | + permissions: |
| 96 | + contents: read |
| 97 | + pull-requests: write |
| 98 | + statuses: write |
| 99 | + |
| 100 | + steps: |
| 101 | + - name: Get User Permission |
| 102 | + id: checkAccess |
| 103 | + uses: actions-cool/check-user-permission@v2 |
| 104 | + with: |
| 105 | + require: write |
| 106 | + username: ${{ github.triggering_actor }} |
| 107 | + env: |
| 108 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 109 | + |
| 110 | + - name: Check User Permission |
| 111 | + if: steps.checkAccess.outputs.require-result == 'false' |
| 112 | + run: | |
| 113 | + echo "${{ github.triggering_actor }} does not have permissions on this repo." |
| 114 | + echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" |
| 115 | + echo "Job originally triggered by ${{ github.actor }}" |
| 116 | + exit 1 |
| 117 | +
|
| 118 | + - name: Checkout repository |
| 119 | + uses: actions/checkout@v4 |
| 120 | + with: |
| 121 | + ref: ${{ github.event.pull_request.head.sha }} |
| 122 | + |
| 123 | + - name: Test init on Fedora container |
| 124 | + uses: sclorg/testing-farm-as-github-action@main |
| 125 | + with: |
| 126 | + api_key: ${{ secrets.TESTING_FARM_API_TOKEN }} |
| 127 | + compose: null |
| 128 | + tmt_path: "tmt" |
| 129 | + tmt_plan_regex: "fedora-container-init" |
| 130 | + pull_request_status_name: "Fedora container init test" |
| 131 | + update_pull_request_status: "true" |
| 132 | + create_github_summary: "true" |
| 133 | + variables: "REPO_URL=${{ github.server_url }}/${{ github.repository }};PR_HEAD=${{ github.event.pull_request.head.sha }};" |
| 134 | + |
| 135 | + container-test-upgrade: |
| 136 | + runs-on: ubuntu-latest |
| 137 | + |
| 138 | + permissions: |
| 139 | + contents: read |
| 140 | + pull-requests: write |
| 141 | + statuses: write |
| 142 | + |
| 143 | + steps: |
| 144 | + - name: Get User Permission |
| 145 | + id: checkAccess |
| 146 | + uses: actions-cool/check-user-permission@v2 |
| 147 | + with: |
| 148 | + require: write |
| 149 | + username: ${{ github.triggering_actor }} |
| 150 | + env: |
| 151 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 152 | + |
| 153 | + - name: Check User Permission |
| 154 | + if: steps.checkAccess.outputs.require-result == 'false' |
| 155 | + run: | |
| 156 | + echo "${{ github.triggering_actor }} does not have permissions on this repo." |
| 157 | + echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" |
| 158 | + echo "Job originally triggered by ${{ github.actor }}" |
| 159 | + exit 1 |
| 160 | +
|
| 161 | + - name: Checkout repository |
| 162 | + uses: actions/checkout@v4 |
| 163 | + with: |
| 164 | + ref: ${{ github.event.pull_request.head.sha }} |
| 165 | + |
| 166 | + - name: Test upgrade on Fedora container |
| 167 | + uses: sclorg/testing-farm-as-github-action@main |
| 168 | + with: |
| 169 | + api_key: ${{ secrets.TESTING_FARM_API_TOKEN }} |
| 170 | + compose: null |
| 171 | + tmt_path: "tmt" |
| 172 | + tmt_plan_regex: "fedora-container-upgrade" |
| 173 | + pull_request_status_name: "Fedora container upgrade test" |
| 174 | + update_pull_request_status: "true" |
| 175 | + create_github_summary: "true" |
| 176 | + variables: "REPO_URL=${{ github.server_url }}/${{ github.repository }};PR_HEAD=${{ github.event.pull_request.head.sha }};" |
0 commit comments