-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (43 loc) · 1.49 KB
/
checks.yml
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: ✅ Code Quality Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
checks:
name: 🔍 Code Quality and Formatting Verification
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 📥 Checkout Repository
uses: actions/checkout@v4
- name: 🛠️ Setup Flutter (Stable)
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- name: 📦 Install All Package Dependencies
run: dart ./scripts/pub_get.dart
- name: 📦 Install Example Project Dependencies
run: flutter pub get -C quill_native_bridge/example
- name: 🎨 Perform Flutter Analysis
run: flutter analyze --write=flutter_analyze.log
- if: ${{ !cancelled() }}
uses: yorifuji/flutter-analyze-commenter@v1
with:
analyze-log: flutter_analyze.log
verbose: false
- name: 🔎 Validate Dart Code Formatting
run: dart format --set-exit-if-changed .
- name: 🔄 Preview Potential Dart Fixes
run: dart fix --dry-run
- name: 📦 Verify Package Readiness for Publishing
run: dart ./scripts/publish_dry_run.dart
# Ktlint: https://github.com/pinterest/ktlint
- name: 🎨 Verify Kotlin Code Style with Ktlint
uses: ScaCap/action-ktlint@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true