File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [ push ]
4+
5+ env :
6+ SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
7+
8+ jobs :
9+ lint :
10+ runs-on : ubuntu-latest
11+ steps :
12+ # Set up environment
13+ - uses : actions/checkout@v1
14+ - uses : actions/setup-java@v1
15+ with :
16+ java-version : ' 12.x'
17+ - uses : subosito/flutter-action@v1
18+ with :
19+ channel : " stable"
20+
21+ # Prepare Flutter
22+ - name : Get dependencies
23+ run : flutter pub get
24+ - name : Generate Freezed models
25+ run : flutter pub run build_runner build --delete-conflicting-outputs
26+
27+ # Lint
28+ - name : Check formatting
29+ run : flutter format --set-exit-if-changed .
30+ - name : Analyze code
31+ run : flutter analyze .
32+
33+ test :
34+ runs-on : ubuntu-latest
35+ steps :
36+ # Set up environment
37+ - uses : actions/checkout@v1
38+ - uses : actions/setup-java@v1
39+ with :
40+ java-version : ' 12.x'
41+ - uses : subosito/flutter-action@v1
42+ with :
43+ channel : " stable"
44+
45+ # Prepare Flutter
46+ - name : Get dependencies
47+ run : flutter pub get
48+ - name : Generate Freezed models
49+ run : flutter pub run build_runner build --delete-conflicting-outputs
50+
51+ # Test
52+ # Temporary disabled due to absence of tests.
53+ # - name: Run tests
54+ # run: flutter test
55+
56+ build :
57+ runs-on : ubuntu-latest
58+ steps :
59+ # Set up environment
60+ - uses : actions/checkout@v1
61+ - uses : actions/setup-java@v1
62+ with :
63+ java-version : ' 12.x'
64+ - uses : subosito/flutter-action@v1
65+ with :
66+ channel : " stable"
67+
68+ # Prepare Flutter
69+ - name : Get dependencies
70+ run : flutter pub get
71+ - name : Generate Freezed models
72+ run : flutter pub run build_runner build --delete-conflicting-outputs
73+
74+ # Build
75+ - name : Build APK
76+ run : flutter build apk --dart-define=SENTRY_DSN=${SENTRY_DSN}
You can’t perform that action at this time.
0 commit comments