Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
336f5b9
:arrow_up: upgraded dependencies other than `go_router`
sarbagyastha Oct 20, 2022
5d2c31b
:arrow_up: upgraded dependencies
sarbagyastha Oct 21, 2022
c320dd4
:truck: moved things in places
sarbagyastha Oct 30, 2022
bb7753d
:sparkles: created `clean_framework_firestore`
sarbagyastha Oct 30, 2022
da74aec
:fire: removed `clean_framework_core`
sarbagyastha Oct 30, 2022
5f89450
:sparkles: created `clean_framework_graphql`
sarbagyastha Oct 30, 2022
fddfaea
:arrow_down: removed dependencies on graphql and firestore
sarbagyastha Oct 30, 2022
264963c
:rotating_light: made analyzer happy to some extent
sarbagyastha Oct 30, 2022
53aaef0
:sparkles: created `clean_framework_rest`
sarbagyastha Oct 30, 2022
5210ed7
:rotating_light: fixed error due to stronger lint
sarbagyastha Oct 30, 2022
fc31a11
:recycle: minor refactor
sarbagyastha Oct 30, 2022
3082503
:bug: fixed tests
sarbagyastha Oct 30, 2022
b89c331
:rotating_light: made analyzer happy
sarbagyastha Oct 30, 2022
6abf1a1
:rotating_light: made analyzer happy
sarbagyastha Oct 30, 2022
cb672f0
:rotating_light: made analyzer happy
sarbagyastha Oct 30, 2022
2d48d0f
:bug: fixed issue with analysis options
sarbagyastha Oct 30, 2022
df7318c
:wrench: configured melos
sarbagyastha Oct 30, 2022
65c403a
:truck: moved network logger to utilities
sarbagyastha Oct 30, 2022
7da9c39
:truck: moved test helpers to `clean_framework_test` package
sarbagyastha Oct 30, 2022
4052a50
:bug: fixed failing tests
sarbagyastha Oct 30, 2022
3a793e7
:fire: removed pubspec overrides from remote repo
sarbagyastha Oct 30, 2022
125d343
:recycle: removed print
sarbagyastha Oct 30, 2022
d0cb853
:art: updated deserializer to take any object as input
sarbagyastha Oct 30, 2022
6bf9943
:sparkles: added `Deserializer.map`
sarbagyastha Oct 31, 2022
f8bc522
:sparkles: added `deserialize` extension to Map<String, dynamic>
sarbagyastha Oct 31, 2022
0d9fdc8
:art: formatted
sarbagyastha Oct 31, 2022
b5905aa
chore(release): publish packages
sarbagyastha Oct 31, 2022
a4c172e
:bookmark: updated version for release
sarbagyastha Oct 31, 2022
3f38eb0
:green_heart: fixed coverage report generation
sarbagyastha Oct 31, 2022
5b53f62
:green_heart: verify pub score
sarbagyastha Oct 31, 2022
a9024ad
:truck: moved tests to routing to own package
sarbagyastha Oct 31, 2022
8009b0b
:green_heart: named ci steps
sarbagyastha Oct 31, 2022
21dbb62
:page_facing_up: updated license and symlinked it to all packages
sarbagyastha Oct 31, 2022
0799201
:page_facing_up: updated license and symlinked it to all packages
sarbagyastha Oct 31, 2022
b0ad9a6
:page_facing_up: updated license and symlinked it to all packages
sarbagyastha Oct 31, 2022
5fbee2a
:page_facing_up: updated license and symlinked it to all packages
sarbagyastha Oct 31, 2022
25b4727
:page_facing_up: updated license and readme
sarbagyastha Oct 31, 2022
28e4c54
:bookmark: prepare for stable release of v1.5.0
sarbagyastha Nov 1, 2022
e17adfc
:rotating_light: fixed usage of deprecated method from riverpod
sarbagyastha Nov 1, 2022
81709d6
:green_heart: commented pub score verification
sarbagyastha Nov 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
💚 fixed coverage report generation
  • Loading branch information
sarbagyastha committed Oct 31, 2022
commit 3f38eb099723b9755d94011f6889267d05e1967c
33 changes: 13 additions & 20 deletions .github/workflows/gen-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,29 @@ jobs:

steps:
- name: Check out current repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Flutter Stable
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@v2
with:
channel: 'stable'

- name: 'Install Tools'
run: |
./.github/workflows/scripts/install-tools.sh

- name: Get package dependencies
run: flutter pub get
run: melos bs

- name: Analyze dart code for the project
run: flutter analyze

- name: Run tests and generate coverage for the library
run: flutter test --coverage
run: melos analyze

- name: Run tests and generate coverage for the example app
run: flutter test --coverage
working-directory: example
- name: Run tests and generate coverage
run: melos coverage:all

- name: Upload library coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage/lcov.info
name: clean-framework-coverage

- name: Upload example coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./example/coverage/lcov.info
name: clean-framework-example-coverage
files: ./packages/clean_framework/coverage/lcov.info,./packages/clean_framework_firestore/coverage/lcov.info,./packages/clean_framework_graphql/coverage/lcov.info,./packages/clean_framework_rest/coverage/lcov.info,./packages/clean_framework_router/coverage/lcov.info,./packages/clean_framework_test/coverage/lcov.info
name: clean-framework-coverage
5 changes: 5 additions & 0 deletions .github/workflows/scripts/install-tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

flutter config --no-analytics
flutter pub global activate melos
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
27 changes: 26 additions & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,36 @@ command:
usePubspecOverrides: true

scripts:
analyze:
# We are setting the concurrency to 1 because a higher concurrency can crash
# the analysis server on low performance machines (like GitHub Actions).
run: |
melos exec -c 1 -- \
dart analyze . --fatal-infos
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.

test:
run: |
melos exec -c 6 --fail-fast -- \
"flutter test --no-pub"
description: Run `flutter test` for a specific package.
select-package:
dir-exists:
- test
- test

coverage:
run: |
melos exec -c 6 --fail-fast -- \
"flutter test --no-pub --coverage"
description: Run `flutter test --coverage` for a specific package.
select-package:
dir-exists:
- test

coverage:all:
run: |
melos run coverage --no-select
description: |
Run all tests available and generate coverage.