Set up Github actions to detect syntax and formatting errors. (#66) #5
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: Deploy application | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
render_document: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
- name: Set up flutter-action | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.13.0' | |
channel: 'stable' | |
- name: Get dependencies | |
run: flutter pub get | |
- name: Detect formatting errors | |
run: dart format --line-length 80 --set-exit-if-changed --output none . | |
- name: Detect syntax errors | |
run: flutter analyze --no-pub . |