36 lines
945 B
YAML
36 lines
945 B
YAML
name: "Lint (mobile)"
|
|
|
|
on:
|
|
# Run on every push to a branch other than main that changes mobile/
|
|
push:
|
|
branches-ignore: [main, f-droid, "deploy/**", "deploy-f/**"]
|
|
paths:
|
|
- "mobile/**"
|
|
- ".github/workflows/mobile-lint.yml"
|
|
|
|
env:
|
|
FLUTTER_VERSION: "3.19.5"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: mobile
|
|
steps:
|
|
- name: Checkout code and submodules
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: "stable"
|
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
|
cache: true
|
|
|
|
- run: flutter pub get
|
|
|
|
- run: flutter analyze --no-fatal-infos
|