-
Notifications
You must be signed in to change notification settings - Fork 248
104 lines (80 loc) · 2.5 KB
/
Copy pathci.yml
File metadata and controls
104 lines (80 loc) · 2.5 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: CI
on:
push:
branches:
- develop
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
compatibility:
name: Minimum supported Flutter
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Flutter 3.27.0
uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
with:
flutter-version: 3.27.0
cache: true
pub-cache: true
- name: Print toolchain versions
run: flutter --version
- name: Install package dependencies
run: flutter pub get
- name: Install example dependencies
working-directory: example
run: flutter pub get
- name: Analyze package
run: flutter analyze --fatal-infos
- name: Run package tests
run: flutter test
- name: Run example tests
working-directory: example
run: flutter test
validate:
name: Format, analyze, and test
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Flutter from .fvmrc
uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
with:
channel: stable
flutter-version-file: .fvmrc
cache: true
pub-cache: true
- name: Print toolchain versions
run: flutter --version
- name: Install package dependencies
run: flutter pub get
- name: Install example dependencies
working-directory: example
run: flutter pub get
- name: Verify formatting
run: >-
dart format --language-version=latest
--output=none --set-exit-if-changed
lib test example/lib example/test
- name: Analyze package
run: flutter analyze --fatal-infos
- name: Run package tests
run: flutter test
- name: Run example tests
working-directory: example
run: flutter test
- name: Build web example
working-directory: example
run: >-
flutter build web --release
--base-href /flutter_easyloading/
- name: Validate publishable package
run: flutter pub publish --dry-run