combine flutter and dart actions

reduce time to complete and stop running twice for pull requests
This commit is contained in:
446564
2026-02-04 08:56:40 -08:00
parent a35590a407
commit b786c90514
3 changed files with 41 additions and 46 deletions
+41
View File
@@ -0,0 +1,41 @@
name: Flutter and Dart Analysis
on:
pull_request:
push:
branches:
- main
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Analyze code
run: flutter analyze --fatal-infos --fatal-warnings
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .