Translated using Weblate ({{ language_name }}) #675
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: Code style | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| dart_format: | |
| name: Dart format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Flutter version | |
| run: echo "VERSION=$(cat .flutter-version)" >> $GITHUB_ENV | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: ${{ env.VERSION }} | |
| - name: Get Flutter packages | |
| run: flutter pub get | |
| - name: Format Dart code | |
| run: dart format --set-exit-if-changed lib |