forked from VGVentures/spacex_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (30 loc) · 862 Bytes
/
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
name: spacex_demo
on:
pull_request:
paths:
- "lib/**"
- "test/**"
- "packages/**"
- ".github/workflows/main.yaml"
- "pubspec.yaml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v1.4.0
with:
channel: stable
- name: "[TEMPORARY] Upgrade Flutter"
run: flutter upgrade
- name: Install Dependencies
run: flutter packages get
- name: Format
run: flutter format --set-exit-if-changed lib test
- name: Analyze
run: flutter analyze lib test
- name: Run tests
run: flutter test --no-pub --coverage --test-randomize-ordering-seed random
- name: Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v1.1.1