-
Notifications
You must be signed in to change notification settings - Fork 48
40 lines (30 loc) · 833 Bytes
/
ci.yml
File metadata and controls
40 lines (30 loc) · 833 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
34
35
36
37
38
39
40
name: Flutter%20Testing%20Tutorial%20CI%20On%20push
# Trigger on push
on: push
jobs:
flutter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Get packages
run: flutter pub get
- name: Test
run: flutter test --coverage
- name: Build - APK
run: flutter build apk
- name: Archive production artifacts
uses: actions/upload-artifact@v1
with:
name: apk
path: build/app/outputs/apk/release/app-release.apk
- name: Collect the code coverage
uses: codecov/codecov-action@v1.0.3
with:
token: ${{secrets.CODECOV_TOKEN}} #required
file: ./coverage/lcov.info