Skip to content

Commit

Permalink
Add code cov to test step (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 authored Aug 10, 2023
2 parents 12eecac + 88ea2e5 commit 919518b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/format_lint_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,11 @@ jobs:
with:
flutter-version: ${{ env.FLUTTER_VERSION }}

- run: flutter test --no-sound-null-safety
- name: Test with coverage
run: flutter test --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

[![Build badge](https://img.shields.io/github/actions/workflow/status/NIAEFEUP/uni/format_lint_test.yaml?style=for-the-badge&branch=develop)](https://github.com/NIAEFEUP/uni/actions)
[![Deploy badge](https://img.shields.io/github/actions/workflow/status/NIAEFEUP/uni/deploy.yaml?label=Deploy&style=for-the-badge&branch=develop)](https://github.com/NIAEFEUP/uni/actions)
[![Codecov branch](https://img.shields.io/codecov/c/github/NIAEFEUP/uni/develop?style=for-the-badge)](https://app.codecov.io/gh/NIAEFEUP/uni/)

[![style: very good analysis](https://img.shields.io/badge/style-very_good_analysis-B22C89.svg?style=for-the-badge)](https://pub.dev/packages/very_good_analysis)
[![License badge](https://img.shields.io/github/license/NIAEFEUP/uni?style=for-the-badge)](https://github.com/NIAEFEUP/uni/blob/develop/LICENSE)
Expand Down
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ignore:
- "**/*.g.dart"
comment:
layout: "diff, flags, files"
behavior: default
require_changes: false
require_base: false
require_head: true
4 changes: 1 addition & 3 deletions uni/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ include: package:very_good_analysis/analysis_options.yaml
analyzer:
# Exclude auto-generated files from dart analysis
exclude:
- '**.g.dart'
- '**.freezed.dart'
- "**.g.dart"

# Custom linter rules. A list of all rules can be found at
# https://dart-lang.github.io/linter/lints/options/options.html
Expand All @@ -13,4 +12,3 @@ linter:
public_member_api_docs: false
avoid_equals_and_hash_code_on_mutable_classes: false
one_member_abstracts: false

0 comments on commit 919518b

Please sign in to comment.