-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (53 loc) · 1.82 KB
/
pull-request.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Pull request checks
on:
pull_request:
branches: [main]
workflow_call:
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- id: dotenv
uses: falti/[email protected]
with:
path: .github/workflows/.env
- name: 💙 Install Flutter
uses: subosito/[email protected]
with:
flutter-version: ${{ steps.dotenv.outputs.flutter_version }}
channel: "stable"
cache: true
cache-key: ${{ runner.os }}-flutter-${{ steps.dotenv.outputs.flutter_version }}
cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }}
- name: 🟠 Install Dependencies
uses: bluefireteam/melos-action@v1
- name: 🧐 Analyze
run: melos analyze
test-extensions:
needs: analyze
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- id: dotenv
uses: falti/[email protected]
with:
path: .github/workflows/.env
- name: 💙 Install Flutter
uses: subosito/[email protected]
with:
flutter-version: ${{ steps.dotenv.outputs.flutter_version }}
channel: "stable"
cache: true
cache-key: ${{ runner.os }}-flutter-${{ steps.dotenv.outputs.flutter_version }}
cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }}
- name: 🟠 Install Dependencies
run: flutter pub get
- name: ✅ Run tests
run: flutter test --coverage --no-pub --test-randomize-ordering-seed random
- name: 💯 Check coverage
uses: VeryGoodOpenSource/very_good_coverage@v3