-
-
Notifications
You must be signed in to change notification settings - Fork 99
60 lines (57 loc) · 1.53 KB
/
feedback.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: feedback
on:
push:
branches:
- master
paths:
- "feedback/**"
- ".github/workflows/feedback.yml"
pull_request:
paths:
- "feedback/**"
- ".github/workflows/feedback.yml"
jobs:
check:
defaults:
run:
working-directory: feedback
# the golden images were generated on MacOS, therefore the tests must run on MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '12.x'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter format -n --set-exit-if-changed .
- run: flutter analyze
- run: flutter test --coverage
- uses: codecov/[email protected]
build:
needs: check
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
flutter_channel: [stable, 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@v3
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.flutter_channel }}
- working-directory: feedback/example
run: flutter build ${{ matrix.flutter_build }}