-
Notifications
You must be signed in to change notification settings - Fork 152
57 lines (54 loc) · 1.45 KB
/
coverage-report.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Coverage Coverage Report
on:
push:
branches:
master
pull_request:
branches:
master
jobs:
codecov_io:
name: "Codecov.io"
runs-on: ubuntu-latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.5'
channel: 'stable'
- name: Generate coverage report
run: flutter test --coverage --coverage-path ./coverage/lcov.info
- name: Send to codecov.io
run: bash <(curl -s https://codecov.io/bash)
- run: ls -al ./coverage
- name: "Upload coverage"
uses: actions/upload-artifact@v1
with:
name: coverage
path: ./coverage
coveralls_io:
name: "Coveralls.io"
needs: codecov_io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Download coverage"
uses: actions/download-artifact@v1
with:
name: coverage
path: ./coverage
- name: "Setup ruby"
uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- run: gem install coveralls-lcov
- run: cat ./coverage/lcov.info
- name: Send to coveralls.io
run: coveralls-lcov --verbose --repo-token $COVERALLS_TOKEN coverage/lcov.info
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}