Feature/handle error #188
Workflow file for this run
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: Execute Lint and Format | |
concurrency: | |
group: $-$ | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
env: | |
FLUTTER_VERSION: 3.19.2 | |
jobs: | |
format-lint: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
cache-key: ":os:-modules-:hash:" | |
channel: "stable" | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
- name: Install dependencies | |
run: | | |
cd frontend/app_student | |
flutter pub get | |
- name: Formatting | |
run: dart --disable-analytics format --set-exit-if-changed frontend/app_student/lib | |
- name: Lint | |
run: flutter analyze frontend/app_student/lib |