-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump min SDK to Dart 2.18.0 / Flutter 3.3.0 & fix CI (cfug#2176)
- Bump min SDK to Dart 2.18.0 / Flutter 3.3.0 where we can use a newer melos version (3.4.0) that allows simplified usage and supports `pubspec_overrides.yaml` files - revert workflow event back to `pull_request` & create coverage comment in a separate workflow - remove unnecessary `exclusive` parameter - adapt the download test to use httpbun instead of downloading artifacts from GitHub Co-authored-by: Alex Li <[email protected]>
- Loading branch information
Showing
22 changed files
with
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'coverage_comment' | ||
|
||
# This workflow runs after the 'Verify packages abilities' workflow is completed for a pull request. | ||
# The workflow downloads the coverage report if the 'Verify packages abilities' workflow was successful. | ||
# The workflow then adds a comment to the PR with the coverage report. | ||
|
||
on: | ||
workflow_run: | ||
workflows: ['Verify packages abilities'] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
download_coverage: | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- name: Download artifact | ||
id: download-artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
workflow: tests.yml | ||
workflow_conclusion: success | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: code-coverage-results.md | ||
- name: Add PR comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
number: ${{ github.event.workflow_run.pull_requests[0].number }} | ||
recreate: true | ||
path: code-coverage-results.md |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Compatibility Policy | ||
|
||
As an open-source project, all activities happened when the maintainers have spare time and energy. | ||
The support range is limited due to the above condition. | ||
Therefore, we have a general compatibility policy to help people | ||
that are not actively adapting SDK updates or intended to use any old SDKs to acknowledge the support range. | ||
|
||
## Policy Details | ||
|
||
For all packages, the oldest Dart SDK we typically support | ||
is one that was **released less than 2 years ago**. | ||
|
||
### Exceptions | ||
|
||
- The minimum SDK version will follow the dependencies' requirement. | ||
For example: `http2: ^2.1.0` requires Dart SDK >=3.0.0. | ||
- The implementation can no longer compatible between the latest and previous SDKs. | ||
- Previous SDKs have security issues that require to use a new version. | ||
|
||
To raise your suggestions and reports, use the issue tracker | ||
or contact [email protected] if you want to do this privately. |
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
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
Oops, something went wrong.