-
-
Notifications
You must be signed in to change notification settings - Fork 202
30 lines (29 loc) · 712 Bytes
/
Copy pathcodecov.yaml
File metadata and controls
30 lines (29 loc) · 712 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
name: codecov
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@master
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Get flutter packages
run: flutter pub get
- name: Run tests and generate coverage report
run: flutter test --coverage
- name: Upload coverage to Codecov
run: curl -s https://codecov.io/bash
shell: bash
- uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./coverage/lcov.info