Merge branches 'main' and 'main' of github.com:La-Table-Ronde/my-intr… #2
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: Flutter CI/CD | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
mobile-app-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter pub get | |
- run: cd mobile && dart format . | |
- name: Commit and push changes | |
run: git diff --exit-code || { git config user.name "GitHub Actions"; git config user.email "[email protected]"; git add .; git commit -m "Apply dart formatting"; git push origin $GITHUB_REF; } |