-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: restructured, cleaned, added pub.dev checks (#108)
* ci: proper naming and cleanup - [deploy_demo]: proper step name, switched to "stable" - [pr_title]: proper step name * proper job names * renaming files and actions * - ci: seperated `check_formatting` job, added `pub_dev_publish_check` job * readme: changed ci badge
- Loading branch information
Showing
6 changed files
with
73 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
name: ci | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
analyze: | ||
name: "Flutter Analyze" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repo" | ||
uses: actions/checkout@v2 | ||
- name: "Install Flutter" | ||
uses: subosito/flutter-action@v1 | ||
- name: "Install dependencies" | ||
run: flutter pub get && (cd demo && flutter pub get) | ||
- name: "Analyze Dart code" | ||
run: flutter analyze . --fatal-infos | ||
|
||
pub_dev_publish_check: | ||
name: "Check pub.dev requirements" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repo" | ||
uses: actions/checkout@v2 | ||
- name: "Install Flutter" | ||
uses: subosito/flutter-action@v1 | ||
- name: "Install dependencies" | ||
run: flutter pub get && (cd demo && flutter pub get) | ||
- name: "Pub Check" | ||
run: pub publish --dry-run | ||
|
||
check_formatting: | ||
name: "Check code formatting" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repo" | ||
uses: actions/checkout@v2 | ||
- name: "Install Flutter" | ||
uses: subosito/flutter-action@v1 | ||
- name: "Install dependencies" | ||
run: flutter pub get && (cd demo && flutter pub get) | ||
- name: "Validate Dart formatting" | ||
run: | | ||
flutter format . | ||
./.github/workflows/scripts/validate-formatting.sh |
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,18 @@ | ||
name: pr | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
validate-pr-title: | ||
name: "Validate PR title" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Validate PR title follows Conventional Commit format" | ||
uses: amannn/action-semantic-pull-request@v3.4.6 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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