refactor: replace debug mode with extensible hook-based system #360
This file contains hidden or 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: format + publishable | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| format_dart: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - name: Format | |
| run: | | |
| flutter pub get | |
| # Format specific files, excluding generated .g.dart files | |
| find . -name "*.dart" ! -name "*.g.dart" ! -path "*/.*" -print0 | xargs -0 dart format --set-exit-if-changed | |
| format_kotlin: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "checkout" | |
| uses: actions/checkout@v4 | |
| - name: ktlint | |
| uses: ScaCap/action-ktlint@master | |
| with: | |
| github_token: ${{ secrets.github_token }} | |
| format_swift: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: GitHub Action for SwiftLint | |
| uses: norio-nomura/action-swiftlint@3.2.1 | |
| publishable: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - uses: bluefireteam/melos-action@v3 | |
| - name: publish checks | |
| run: | | |
| cd workmanager_platform_interface | |
| flutter pub publish -n | |
| cd ../workmanager_android | |
| flutter pub publish -n | |
| cd ../workmanager_apple | |
| flutter pub publish -n | |
| cd ../workmanager | |
| flutter pub publish -n |