-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.47 KB
/
base_ci.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
name: base_ci
on:
push:
jobs:
verify_flutter_form_generator_package:
name: Traction Challenge
runs-on: ubuntu-latest
defaults:
run:
working-directory: asset_viewer
steps:
- uses: actions/checkout@v4
- name: Check broken links
uses: JustinBeckwith/linkinator-action@v1
with:
paths: "**/*.md"
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Flutter action
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install dependencies
run: flutter pub get
- name: Format code
run: dart format --set-exit-if-changed .
- name: Analyze static code
run: flutter analyze
- name: Run tests
run: flutter test --coverage
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Making sure that code coverage is 80
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: asset_viewer/coverage/lcov.info
min_coverage: 80
- name: Build
run: |
flutter build appbundle --release --obfuscate --split-debug-info=build/app/outputs/bundle/release --extra-gen-snapshot-options=--save-obfuscation-map=build/app/outputs/bundle/release/app-map.json
flutter build web --release