2024-03-04 10:28:52 +00:00
|
|
|
name: "Lint (auth)"
|
2024-03-04 10:14:26 +00:00
|
|
|
|
|
|
|
on:
|
2024-03-05 07:40:03 +00:00
|
|
|
# Run on every push to branches (this also covers pull requests)
|
2024-03-04 10:14:26 +00:00
|
|
|
push:
|
2024-03-05 07:40:03 +00:00
|
|
|
# See: [Note: Specify branch when specifying a path filter]
|
|
|
|
branches: ["**"]
|
|
|
|
# Only run if something changes in these paths
|
2024-03-04 10:14:26 +00:00
|
|
|
paths:
|
|
|
|
- "auth/**"
|
2024-03-04 10:28:16 +00:00
|
|
|
- ".github/workflows/auth-lint.yml"
|
2024-03-04 10:14:26 +00:00
|
|
|
|
2024-03-05 14:07:51 +00:00
|
|
|
env:
|
|
|
|
FLUTTER_VERSION: "3.16.9"
|
|
|
|
|
2024-03-04 10:14:26 +00:00
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: auth
|
|
|
|
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
|
2024-03-04 10:14:26 +00:00
|
|
|
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
|
|
|
|
|
2024-03-04 10:14:26 +00:00
|
|
|
- run: flutter pub get
|
2024-03-04 10:28:16 +00:00
|
|
|
|
2024-03-04 10:14:26 +00:00
|
|
|
- run: flutter analyze --no-fatal-infos
|
2024-03-06 08:31:37 +00:00
|
|
|
|
|
|
|
- name: Verify custom icon JSON
|
|
|
|
run: cat assets/custom-icons/_data/custom-icons.json | jq empty
|