ente/.github/workflows/auth-lint.yml
Manav Rathi d316a3049c [auth] Verify that the custom icon JSON is valid as part of lint checks
Purposely opening this PR against a known bad state to verify that the check
catches this issue.
2024-03-06 14:05:09 +05:30

40 lines
1.1 KiB
YAML

name: "Lint (auth)"
on:
# Run on every push to branches (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:
- "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