This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
Separate business logic from UI widgets #31
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: Analyze and format | |
on: | |
# Trigger the workflow on pushes to the main and feature branches as well as PRs targeting them. | |
push: | |
branches: [main, feature/**] | |
pull_request: | |
branches: [main, feature/**] | |
# Allows us to run the workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
flutter_version: 3.13.6 | |
jobs: | |
analyze-format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutter_version }} | |
channel: 'stable' | |
cache: true | |
- name: Analyze (lint) | |
run: flutter analyze | |
- name: Check format | |
run: dart format --output=none --set-exit-if-changed . -l 150 |