Commit f8e1b8d9 by Maurits van Beusekom Committed by GitHub

Merge pull request #484 from Baseflow/support_codecov_workflow

Support codecov workflow
parents 3227538b ee7fbbab
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
### :thinking: Checklist before submitting ### :thinking: Checklist before submitting
- [ ] All projects build - [ ] I made sure all projects build.
- [ ] Follows style guide lines ([code style guide](https://github.com/Baseflow/flutter-permission-handler/blob/develop/CONTRIBUTING.md)) - [ ] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
- [ ] Relevant documentation was updated - [ ] I updated CHANGELOG.md to add a description of the change.
- [ ] Rebased onto current develop - [ ] I followed the style guide lines ([code style guide](https://github.com/Baseflow/flutter-permission-handler/blob/develop/CONTRIBUTING.md)).
- [ ] I updated the relevant documentation.
- [ ] I rebased onto current `master`.
...@@ -58,3 +58,15 @@ jobs: ...@@ -58,3 +58,15 @@ jobs:
- name: Run iOS build - name: Run iOS build
run: flutter build ios --release --no-codesign run: flutter build ios --release --no-codesign
working-directory: ${{env.example-directory}} working-directory: ${{env.example-directory}}
# Run all unit-tests with code coverage
- name: Run unit tests
run: flutter test --coverage
working-directory: ${{env.source-directory}}
# Upload code coverage information
- uses: codecov/codecov-action@v1
with:
file: ${{env.source-directory}}/coverage/lcov.info # optional
name: permission_handler (Platform Interface Package) # optional
fail_ci_if_error: true
...@@ -48,3 +48,15 @@ jobs: ...@@ -48,3 +48,15 @@ jobs:
run: flutter analyze run: flutter analyze
working-directory: ${{env.source-directory}} working-directory: ${{env.source-directory}}
# Run all unit-tests with code coverage
- name: Run unit tests
run: flutter test --coverage
working-directory: ${{env.source-directory}}
# Upload code coverage information
- uses: codecov/codecov-action@v1
with:
file: ${{env.source-directory}}/coverage/lcov.info # optional
name: permission_handler (Platform Interface Package) # optional
fail_ci_if_error: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment