ci: setup checks and tests workflows #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
uses: zgosalvez/github-actions-analyze-dart@v2 | |
with: | |
fail-on-warnings: true | |
fail-on-infos: true | |
- 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 | |
# - name: 🔎 Validate Swift Code Formatting | |
# uses: feather-actions/[email protected] | |
# with: | |
# swift-format-version: 600.0.0 | |
- 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 |