mobile_nebula/.github/workflows/fluttercheck.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
961 B
YAML
Raw Normal View History

2025-02-13 17:25:37 +00:00
name: Flutter check
2021-05-03 21:55:51 +00:00
on:
push:
branches:
- main
pull_request:
paths:
2025-02-13 17:25:37 +00:00
- '.github/workflows/fluttercheck.yml'
2021-05-03 21:55:51 +00:00
- '**.dart'
jobs:
flutterfmt:
2021-05-03 21:55:51 +00:00
name: Run flutter format
runs-on: ubuntu-latest
steps:
- name: Install flutter
2023-05-12 17:42:58 +00:00
uses: subosito/flutter-action@v2
2021-05-03 21:55:51 +00:00
with:
flutter-version: '3.29.0'
2021-05-03 21:55:51 +00:00
- name: Check out code
uses: actions/checkout@v4
with:
show-progress: false
2021-05-03 21:55:51 +00:00
- name: Check formating
run: dart format -l120 lib/ --set-exit-if-changed --suppress-analytics --output none
2025-02-13 17:25:37 +00:00
flutterlint:
name: Run flutter lint
runs-on: ubuntu-latest
steps:
- name: Install flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.29.0'
- name: Check out code
uses: actions/checkout@v4
with:
show-progress: false
- name: Check linting
run: dart fix --dry-run