ente/.github/workflows/mobile-lint.yml

38 lines
1,008 B
YAML
Raw Normal View History

name: "Lint (mobile)"
on:
# Run on every push (this also covers pull requests)
push:
# See: [Note: Specify branch when specifying a path filter]
branches: ["**"]
# Only run if something changes in these paths
paths:
- "mobile/**"
2024-03-04 10:28:16 +00:00
- ".github/workflows/mobile-lint.yml"
2024-03-05 14:07:51 +00:00
env:
FLUTTER_VERSION: "3.13.4"
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: mobile
steps:
2024-03-05 11:03:20 +00:00
- name: Checkout code and submodules
uses: actions/checkout@v4
2024-03-04 10:28:16 +00:00
with:
submodules: recursive
2024-03-05 14:07:51 +00:00
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
2024-03-05 11:03:20 +00:00
uses: subosito/flutter-action@v2
with:
channel: "stable"
2024-03-05 14:07:51 +00:00
flutter-version: ${{ env.FLUTTER_VERSION }}
2024-03-04 10:28:16 +00:00
cache: true
- run: flutter pub get
2024-03-04 10:28:16 +00:00
- run: flutter analyze --no-fatal-infos