-
Notifications
You must be signed in to change notification settings - Fork 39
87 lines (65 loc) · 1.93 KB
/
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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: alchemist
on: [pull_request]
env:
FLUTTER_VERSION: 3.16.0
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: 'stable'
cache: true
- name: Install Dependencies
run: flutter packages get
- name: Format
run: dart format --set-exit-if-changed .
- name: Analyze project source
uses: invertase/github-action-dart-analyzer@v1
- uses: codecov/codecov-action@v2
with:
files: coverage/lcov.info
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flutter-version: ['3.16.9', '3.19.6', '3.22.3', '3.24.3']
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
channel: 'stable'
cache: true
- name: Install Dependencies
run: flutter packages get
- name: Disable animations
run: flutter config --no-cli-animations
- name: Run tests
run: |
flutter test --no-pub --coverage --test-randomize-ordering-seed=random
- name: Upload failures
if: failure()
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: "golden_failures_${{ matrix.flutter-version }}"
path: |
**/failures/**/*.png
pana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.0'
channel: 'stable'
cache: true
- name: Install Dependencies
run: |
flutter packages get
flutter pub global activate pana
- name: Verify Pub Score
run: ./tool/verify_pub_score.sh 130