-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.14 KB
/
build.yml
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
name: build
on: [push, pull_request]
jobs:
check:
# the golden images were generated on MacOS, therefore the tests must run on MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: beta
- run: flutter format -n --set-exit-if-changed .
- run: flutter analyze
- run: flutter test --coverage
- uses: codecov/codecov-action@v2.1.0
build:
needs: check
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
flutter_channel: [beta]
include:
- os: macOS-latest
flutter_build: ios --no-codesign
- os: ubuntu-latest
flutter_build: apk
- os: windows-latest
flutter_build: apk
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: ${{ matrix.flutter_channel }}
- working-directory: example
run: flutter build ${{ matrix.flutter_build }} --debug