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

39 lines
1,021 B
YAML
Raw Normal View History

2024-03-04 10:28:52 +00:00
name: "Lint (auth)"
2024-03-04 10:14:26 +00:00
on:
# Run on every push to a branch other than main that changes auth/
2024-03-04 10:14:26 +00:00
push:
branches-ignore: [main]
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
- name: Verify custom icon JSON
run: cat assets/custom-icons/_data/custom-icons.json | jq empty