Add dart format check to CI workflow #5
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: Checks | |
| on: | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| flutter-version: '3.38.1' | |
| - name: Configure app | |
| run: | | |
| cd scripts | |
| ./build_app.sh -v "0.0.1" -b "1" -p "linux" -a "stack_wallet" | |
| - name: Debug workspace | |
| run: | | |
| echo "Current directory: $(pwd)" | |
| echo "Workspace: ${{ github.workspace }}" | |
| ls -la | |
| ls -la ${{ github.workspace }} | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Verify Dart formatting | |
| run: dart format --output=none --set-exit-if-changed . | |
| - name: Analyze Dart project source | |
| run: flutter analyze |