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.
39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
name: "Lint (auth)"
|
|
|
|
on:
|
|
# Run on every push to a branch other than main that changes auth/
|
|
push:
|
|
branches-ignore: [main, "deploy/**"]
|
|
paths:
|
|
- "auth/**"
|
|
- ".github/workflows/auth-lint.yml"
|
|
|
|
env:
|
|
FLUTTER_VERSION: "3.16.9"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: auth
|
|
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
|
|
|
|
- name: Verify custom icon JSON
|
|
run: cat assets/custom-icons/_data/custom-icons.json | jq empty
|