Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9503cc1

Browse files
committed
ci(codecov): example coverage with codecov
1 parent 6510fe9 commit 9503cc1

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

‎.codecov.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
coverage:
2+
precision: 2
3+
round: down
4+
range: "70...100"
5+
6+
status:
7+
project: no
8+
patch: yes
9+
changes: no
10+
11+
ignore:
12+
- "lib/src/**/*.g.dart"
13+
14+
# https://docs.codecov.io/docs/pull-request-comments
15+
comment:
16+
layout: "reach, diff, flags, files"
17+
behavior: default

‎.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Flutter Movie CI On push
1+
name: Flutter Testing Tutorial CI On push
22

33
# Trigger on push
44
on: push
@@ -31,4 +31,10 @@ jobs:
3131
uses: actions/upload-artifact@v1
3232
with:
3333
name: apk
34-
path: build/app/outputs/apk/release/app-release.apk
34+
path: build/app/outputs/apk/release/app-release.apk
35+
36+
- name: Collect the code coverage
37+
uses: codecov/codecov-action@v1.0.3
38+
with:
39+
token: ${{secrets.CODECOV_TOKEN}} #required
40+
file: ./coverage/lcov.info

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /