50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: "Lint (mobile)"
|
|
|
|
on:
|
|
# Run on every pull request (open or push to it) that changes mobile/
|
|
pull_request:
|
|
paths:
|
|
- "mobile/apps/photos/**"
|
|
- ".github/workflows/mobile-lint.yml"
|
|
|
|
env:
|
|
FLUTTER_VERSION: "3.32.8"
|
|
RUST_VERSION: "1.86.0"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: mobile/apps/photos
|
|
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
|
|
|
|
- name: Install Rust ${{ env.RUST_VERSION }}
|
|
uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ env.RUST_VERSION }}
|
|
|
|
- name: Install Flutter Rust Bridge
|
|
run: cargo install flutter_rust_bridge_codegen
|
|
|
|
- name: Generate Rust bindings
|
|
run: flutter_rust_bridge_codegen generate
|
|
|
|
- run: flutter analyze --no-fatal-infos
|