Skip to content

Commit

Permalink
Release 17/08/2021 (#78)
Browse files Browse the repository at this point in the history
Release 17/08/2021
  • Loading branch information
arafaysaleem authored Aug 17, 2021
2 parents 094bad5 + 9a045e0 commit a6a4245
Show file tree
Hide file tree
Showing 98 changed files with 5,529 additions and 2,045 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/PR-generate-goldens.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Generate Updated Goldens
on:
push:
branches-ignore: [master, release, dev] # only run on feature branches
paths:
- '**/golden_tests/**.dart'

workflow_dispatch:

jobs:
generate-goldens:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0
- name: Setup Java JDK
uses: actions/setup-java@v2.2.0
with:
distribution: 'adopt'
java-version: '12.x'
- name: Checkout Flutter Stable Channel
uses: subosito/flutter-action@v1.5.3
with:
channel: 'stable'
- name: Get Pub Dependencies
run: flutter pub get
- name: Run Build Runner For Codegen Files
run: flutter packages pub run build_runner build --delete-conflicting-outputs
- name: Run tests
run: flutter test --update-goldens test/golden_tests
- name: Commit Updated Goldens
run: |
git config --global user.name 'arafaysaleem'
git config --global user.email 'arafaysaleem@users.noreply.github.com'
git add -A
git commit -m "test(Goldens): update generated goldens for new changes"
- name: GitHub Push To Repository
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.EZ_TICKETS_APP_TOKEN }}
branch: ${{ github.ref }}
6 changes: 4 additions & 2 deletions .github/workflows/PR-merge-build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- name: Setup Java JDK
uses: actions/setup-java@v2.2.0
with:
distribution: 'adopt'
java-version: '12.x'
- name: Checkout Flutter Stable Channel
uses: subosito/flutter-action@v1.5.1
uses: subosito/flutter-action@v1.5.3
with:
channel: 'stable'
- name: Get Pub Dependencies
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/PR-open-test-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ jobs:
name: Test APK
runs-on: ubuntu-latest
steps:
- name: Wait For Generate Goldens Workflow To Complete
uses: fountainhead/action-wait-for-check@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: generate-goldens
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- name: Setup Java JDK
uses: actions/setup-java@v2.2.0
with:
distribution: 'adopt'
java-version: '12.x'
- name: Checkout Flutter Stable Channel
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@v1.5.3
with:
channel: 'stable'
- name: Get Pub Dependencies
Expand All @@ -30,7 +38,7 @@ jobs:
with:
path: "./coverage/lcov.info"
min_coverage: 4.5
exclude: "**/*.freezed.dart **/*.g.dart **/*.gr.dart **/*.mocks.dart **/constants.dart **/custom_theme.dart **/assets_helper.dart"
exclude: "**/*.freezed.dart **/*.g.dart **/*.gr.dart **/*.mocks.dart **/constants.dart **/custom_theme.dart **/assets_helper.dart **/routes.dart"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.0.2
with:
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,17 @@ app.*.map.json
/android/app/profile
/android/app/release

# Generated model files
# Generated files
*.g.dart
*.freezed.dart
*.gr.dart
*.mocks.dart

#keystore
*.jks

# don't check in golden failure output
**/failures/*.png

# don't check in goldens since we are using Windows and CI uses Ubuntu
**/goldens_local/*.png
8 changes: 5 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ analyzer:
errors:
missing_required_param: error
missing_return: error
prefer_const_constructors: error
prefer_const_constructors_in_immutables: error
todo: ignore
invalid_annotation_target: ignore
strong-mode:
implicit-casts: false
implicit-dynamic: false
Expand All @@ -22,10 +21,13 @@ linter:
directives_ordering: false
prefer_double_quotes: false
use_key_in_widget_constructors: false
prefer_const_constructors: true
prefer_const_constructors_in_immutables: true
always_specify_types: false
unnecessary_final: false
public_member_api_docs: false
prefer_expression_function_bodies: false
avoid_classes_with_only_static_members: false
prefer_const_literals_to_create_immutables: true
lines_longer_than_80_chars: false
lines_longer_than_80_chars: false
prefer_relative_imports: true
4 changes: 0 additions & 4 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
targets:
$default:
builders:
auto_route_generator:autoRouteGenerator:
generate_for:
include:
- lib/routes/**.dart
json_serializable:
options:
explicit_to_json: true
Expand Down
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ignore:
- '**/*.freezed.dart'
- "**/*.mocks.dart"
- '**/constants.dart'
- '**/routes.dart'
- '**/custom_theme.dart'
- '**/assets_helper.dart'
- '/android/'
Expand Down
Loading

0 comments on commit a6a4245

Please sign in to comment.