-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (27 loc) · 816 Bytes
/
coverage.yml
File metadata and controls
33 lines (27 loc) · 816 Bytes
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
name: coverage
# This workflow is triggered on pull requests and pushes to the repository.
on:
pull_request:
branches: [beta, develop, master]
push:
branches: [beta, develop, master]
jobs:
coverage:
name: Upload code coverage to Codecov
# This job will run on Ubuntu virtual machine.
runs-on: ubuntu-20.04
steps:
- name: Checkout the repository
uses: actions/checkout@v2
# Setup the Flutter environment.
- uses: subosito/flutter-action@v1
with:
channel: "stable"
flutter-version: "2.2.0"
- name: Test the application
run: flutter test --coverage
- name: Code Coverage
uses: codecov/codecov-action@v1.2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage/lcov.info