-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(SNP-1124): Update CI workflows
- Loading branch information
1 parent
09329eb
commit 7b783de
Showing
16 changed files
with
164 additions
and
178 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Tap on "Preview" ⤴ | ||
|
||
And choose one of the templates: | ||
|
||
* [Bugfix PR](?expand=1&template=bug_fix.md) | ||
* [New feature PR](?expand=1&template=new_feature.md) | ||
* [Documentation update PR](?expand=1&template=documentation_update.md) | ||
* [Documentation update PR](?expand=1&template=documentation_update.md) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
.github/workflows/on_close_issue_add_comment_to_pyrus_task.yml
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,24 @@ | ||
name: Add comment to Pyrus task on issue close | ||
|
||
on: | ||
issues: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
get_pyrus_task_id: | ||
name: Get Pyrus task ID from special comment in issue | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/get_pyrus_task_id_from_issue_or_pr_comment.yml@main | ||
with: | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
|
||
add_comment_to_pyrus_task: | ||
name: Add comment to Pyrus task | ||
needs: get_pyrus_task_id | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/add_comment_to_pyrus_task.yml@main | ||
with: | ||
PYRUS_TASK_ID: ${{ needs.get_pyrus_task_id.outputs.PYRUS_TASK_ID }} | ||
COMMENT_TEXT: The issue is closed. | ||
secrets: | ||
LOGIN: ${{ secrets.PYRUS_BOT_LOGIN }} | ||
SECURITY_KEY: ${{ secrets.PYRUS_BOT_SECRET_KEY }} |
24 changes: 24 additions & 0 deletions
24
.github/workflows/on_close_pr_add_comment_to_pyrus_task.yml
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,24 @@ | ||
name: Add comment to Pyrus task on PR close | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
get_pyrus_task_id: | ||
name: Get Pyrus task ID from special comment in issue | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/get_pyrus_task_id_from_issue_or_pr_comment.yml@main | ||
with: | ||
ISSUE_NUMBER: ${{ github.event.pull_request.number }} | ||
|
||
add_comment_to_pyrus_task: | ||
name: Add comment to Pyrus task | ||
needs: get_pyrus_task_id | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/add_comment_to_pyrus_task.yml@main | ||
with: | ||
PYRUS_TASK_ID: ${{ needs.get_pyrus_task_id.outputs.PYRUS_TASK_ID }} | ||
COMMENT_TEXT: The pull request is closed. | ||
secrets: | ||
LOGIN: ${{ secrets.PYRUS_BOT_LOGIN }} | ||
SECURITY_KEY: ${{ secrets.PYRUS_BOT_SECRET_KEY }} |
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,34 @@ | ||
name: Create Pyrus task from new issue | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
- reopened | ||
|
||
jobs: | ||
get_package_name: | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/get_package_name.yml@main | ||
|
||
create_pyrus_task: | ||
name: Create Pyrus task from issue | ||
needs: get_package_name | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/create_pyrus_task_from_issue_or_pr.yml@main | ||
with: | ||
TYPE: Issue | ||
PACKAGE_NAME: ${{ needs.get_package_name.outputs.package_name }} | ||
TITLE: ${{ github.event.issue.title }} | ||
LINK: ${{ github.event.issue.html_url }} | ||
secrets: | ||
LOGIN: ${{ secrets.PYRUS_BOT_LOGIN }} | ||
SECURITY_KEY: ${{ secrets.PYRUS_BOT_SECRET_KEY }} | ||
|
||
add_pyrus_task_link: | ||
name: Add Pyrus task link | ||
needs: create_pyrus_task | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/add_comment_to_issue_or_pr.yml@main | ||
with: | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
# Don't change the comment link, because the Pyrus task ID is searched by the link text | ||
COMMENT_TEXT: "[Link to Pyrus task](https://pyrus.com/t#id${{ needs.create_pyrus_task.outputs.TASK_ID }})" | ||
REACTIONS: rocket |
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,34 @@ | ||
name: Create Pyrus task from new PR | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
|
||
jobs: | ||
get_package_name: | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/get_package_name.yml@main | ||
|
||
create_pyrus_task: | ||
name: Create Pyrus task from pull request | ||
needs: get_package_name | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/create_pyrus_task_from_issue_or_pr.yml@main | ||
with: | ||
TYPE: Pull request | ||
PACKAGE_NAME: ${{ needs.get_package_name.outputs.package_name }} | ||
TITLE: ${{ github.event.pull_request.title }} | ||
LINK: ${{ github.event.pull_request.html_url }} | ||
secrets: | ||
LOGIN: ${{ secrets.PYRUS_BOT_LOGIN }} | ||
SECURITY_KEY: ${{ secrets.PYRUS_BOT_SECRET_KEY }} | ||
|
||
add_pyrus_task_link: | ||
name: Add Pyrus task link | ||
needs: create_pyrus_task | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/add_comment_to_issue_or_pr.yml@main | ||
with: | ||
ISSUE_NUMBER: ${{ github.event.pull_request.number }} | ||
# Don't change the comment link, because the Pyrus task ID is searched by the link text | ||
COMMENT_TEXT: "[Link to Pyrus task](https://pyrus.com/t#id${{ needs.create_pyrus_task.outputs.TASK_ID }})" | ||
REACTIONS: rocket |
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,34 @@ | ||
name: On pull request | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
get_flutter_version: | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/get_flutter_version.yml@main | ||
|
||
analysis: | ||
needs: get_flutter_version | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/analysis.yml@main | ||
with: | ||
FLUTTER_VERSION: ${{ needs.get_flutter_version.outputs.FLUTTER_VERSION }} | ||
|
||
testing: | ||
needs: [analysis, get_flutter_version] | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/testing.yml@main | ||
with: | ||
FLUTTER_VERSION: ${{ needs.get_flutter_version.outputs.FLUTTER_VERSION }} | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
build_android_example: | ||
needs: [analysis, get_flutter_version] | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/build_android_example.yml@main | ||
with: | ||
FLUTTER_VERSION: ${{ needs.get_flutter_version.outputs.FLUTTER_VERSION }} | ||
|
||
build_ios_example: | ||
needs: [analysis, get_flutter_version] | ||
uses: surfstudio/flutter-ci-workflows/.github/workflows/build_ios_example.yml@main | ||
with: | ||
FLUTTER_VERSION: ${{ needs.get_flutter_version.outputs.FLUTTER_VERSION }} |
Oops, something went wrong.