mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
35 lines
876 B
YAML
35 lines
876 B
YAML
name: Flutter checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linting:
|
|
name: Linting & Formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2.16.0
|
|
with:
|
|
channel: ${{ vars.FLUTTER_CHANNEL }}
|
|
flutter-version: ${{ vars.FLUTTER_VERSION }}
|
|
cache: true
|
|
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
|
|
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
|
|
|
|
- name: Get dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Setup dart
|
|
uses: dart-lang/setup-dart@v1
|
|
|
|
- name: Analyze Dart
|
|
uses: invertase/github-action-dart-analyzer@v3
|
|
with:
|
|
custom-lint: true
|