-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: arafaysaleem <[email protected]>
- Loading branch information
1 parent
35b0cc7
commit e960694
Showing
2 changed files
with
21 additions
and
5 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Test PR and Push | ||
on: | ||
pull_request: | ||
branches: [release,dev,master] | ||
branches: [release,dev,master, test/**] | ||
jobs: | ||
build: | ||
name: Test APK | ||
|
@@ -17,9 +17,25 @@ jobs: | |
channel: 'stable' | ||
- name: Get Pub Dependencies | ||
run: flutter pub get | ||
- name: Run build runner for codegen files | ||
- name: Run Build Runner For Codegen Files | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
- name: Run Dart Analyzer | ||
run: flutter analyze . | ||
- name: Attempt release build generation | ||
run: flutter build apk --debug | ||
- name: Generate coverage helper script | ||
run: sh ./coverage_helper_script.bash | ||
- name: Run tests | ||
run: flutter test --coverage | ||
- name: Check Very Good Coverage | ||
uses: VeryGoodOpenSource/[email protected] | ||
with: | ||
path: "./coverage/lcov.info" | ||
min_coverage: 4.5 | ||
exclude: "**/*.freezed.dart **/*.g.dart **/*.gr.dart **/constants.dart **/custom_theme.dart **/assets_helper.dart" | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage/lcov.info | ||
verbose: true | ||
- name: Attempt Debug APK Build | ||
run: flutter build apk --debug --dart-define=BASE_URL=${{ secrets.BASE_URL }} |
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