fa3f249a7a
When we merge main into a deploy/* branch (e.g. https://github.com/ente-io/ente/pull/1147), all changes get pulled in not just the one related to that deployment, and this causes almost all of the path based workflows to run again unnecessarily. Exclude the various "deploy/**" branches to stop these unnecessary workflows from being triggered.
36 lines
930 B
YAML
36 lines
930 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/**"]
|
|
paths:
|
|
- "mobile/**"
|
|
- ".github/workflows/mobile-lint.yml"
|
|
|
|
env:
|
|
FLUTTER_VERSION: "3.13.4"
|
|
|
|
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
|