-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add github action to trigger E2E
based on the discussion on the slack channel. we are adding a github action to trigger the CI jobs when a ok-to-test label is added on the PR. This action is based on below github action https://github.com/peter-evans/create-or-update-comment Sample Demo avaiable at https://github.com/Madhu-1/ \label-commentor-action-testing/pull/4 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
- Loading branch information
Showing
1 changed file
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
--- | ||
name: Add comment | ||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request_target: | ||
types: | ||
- labeled | ||
jobs: | ||
add-comment: | ||
if: github.event.label.name == 'ok-to-test' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Add comment to trigger external storage tests for Kubernetes 1.22 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/k8s-e2e-external-storage/1.22 | ||
- name: Add comment to trigger external storage tests for Kubernetes 1.23 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/k8s-e2e-external-storage/1.23 | ||
- name: Add comment to trigger external storage tests for Kubernetes 1.24 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/k8s-e2e-external-storage/1.24 | ||
- name: Add comment to trigger helm E2E tests for Kubernetes 1.22 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/mini-e2e-helm/k8s-1.22 | ||
- name: Add comment to trigger helm E2E tests for Kubernetes 1.23 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/mini-e2e-helm/k8s-1.23 | ||
- name: Add comment to trigger helm E2E tests for Kubernetes 1.24 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/mini-e2e-helm/k8s-1.24 | ||
- name: Add comment to trigger E2E tests for Kubernetes 1.22 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/mini-e2e/k8s-1.22 | ||
- name: Add comment to trigger E2E tests for Kubernetes 1.23 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/mini-e2e/k8s-1.23 | ||
- name: Add comment to trigger E2E tests for Kubernetes 1.24 | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/mini-e2e/k8s-1.24 | ||
- name: Add comment to trigger cephfs upgrade tests | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/upgrade-tests-cephfs | ||
- name: Add comment to trigger rbd upgrade tests | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
/test ci/centos/upgrade-tests-rbd |