-
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (46 loc) · 1.34 KB
/
ci.yml
File metadata and controls
55 lines (46 loc) · 1.34 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.22.2"
channel: "stable"
cache: true
- name: Install dependencies
run: |
flutter pub get
cd example && flutter pub get
- name: Verify formatting
run: |
dart format --output=none --set-exit-if-changed lib/
dart format --output=none --set-exit-if-changed example/lib/
dart format --output=none --set-exit-if-changed test/
- name: Analyze project source
run: |
dart analyze lib/
dart analyze example/lib/
dart analyze test/
- name: Run tests
run: |
flutter test
cd example && flutter test
- name: Run build_runner
run: |
dart run build_runner build --delete-conflicting-outputs
cd example && dart run build_runner build --delete-conflicting-outputs
# This job ensures all previous jobs passed
verify-checks:
needs: [code-quality]
runs-on: ubuntu-latest
steps:
- name: Verify all checks passed
run: echo "All checks passed successfully"