-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Facilitate contributor CI run for contributor PR
- Loading branch information
Showing
4 changed files
with
91 additions
and
1 deletion.
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,52 @@ | ||
name: Contributor Tests trigger | ||
|
||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/bot run tests') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create comment on the PR | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Contributor Tests Triggered by @${{ github.event.comment.user.login }} | ||
- via [comment](${{ github.event.comment.html_url }}) | ||
- Build is running [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
reactions: 'rocket' | ||
|
||
kubernetes-tests: | ||
name: "Contributor #${{ github.event.issue.number }}" | ||
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/bot run tests') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}} | ||
uses: nebari-dev/nebari/.github/workflows/kubernetes_test.yaml@release/2022.11.1 | ||
with: | ||
pr_number: ${{ github.event.issue.number }} | ||
|
||
infracost-tests: | ||
name: "Contributor #${{ github.event.issue.number }}" | ||
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/bot run tests') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}} | ||
uses: nebari-dev/nebari/.github/workflows/infracost.yml@release/2022.11.1 | ||
with: | ||
pr_number: ${{ github.event.issue.number }} | ||
|
||
provider-tests: | ||
name: "Contributor #${{ github.event.issue.number }}" | ||
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/bot run tests') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}} | ||
uses: nebari-dev/nebari/.github/workflows/test-provider.yaml@release/2022.11.1 | ||
with: | ||
pr_number: ${{ github.event.issue.number }} |
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
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
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