This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (66 loc) · 1.77 KB
/
main.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build
on: [push]
env:
flutter_channel: 'stable'
flutter_version: '1.17.1'
jobs:
# Analyze and test each package.
analyze-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
flutter_path: /opt/hostedtoolcache/flutter
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: ${{ matrix.flutter_path }}
key: ${{ runner.OS }}-flutter-cache-${{ env.flutter_version }}
restore-keys: |
${{ runner.OS }}-flutter-cache-
- uses: subosito/flutter-action@v1
with:
channel: ${{ env.flutter_channel }}
flutter-version: ${{ env.flutter_version }}
- name: Analyze and Test
run: |
./tool/ci.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage/lcov.info
#
# Build mobile apps.
# build:
# runs-on: ${{ matrix.os }}
# needs: analyze-and-test
##
# strategy:
# matrix:
# os: [ubuntu-latest]
# fail-fast: false
##
# steps:
# - uses: actions/checkout@v2
# - name: Cache Flutter
# id: cache-flutter
# uses: actions/cache@v1
# with:
# path: /opt/hostedtoolcache/flutter
# key: ${{ runner.os }}-flutter
# - uses: subosito/flutter-action@v1
# with:
# channel: 'stable'
# - name: Build Android
# run: |
# ./tool/build.sh apk
# - name: Build iOS
# if: ${{ runner.os }} == 'macOS'
# run: |
# ./tool/build.sh ios