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

36 lines
948 B
YAML
Raw Normal View History

2024-03-04 10:14:26 +00:00
name: "Lint (mobile)"
on:
# Run on every push (this also covers pull requests)
push:
paths:
# - But only if something changes inside auth
- "auth/**"
2024-03-04 10:28:16 +00:00
# - Or if the there is some change in workflow itself
- ".github/workflows/auth-lint.yml"
2024-03-04 10:14:26 +00:00
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: auth
steps:
2024-03-04 10:28:16 +00:00
# Checkout our code, including submodules
- uses: actions/checkout@v4
with:
submodules: recursive
2024-03-04 10:14:26 +00:00
# Install Flutter
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.13.4"
2024-03-04 10:28:16 +00:00
cache: true
2024-03-04 10:14:26 +00:00
# Install dependencies
- run: flutter pub get
2024-03-04 10:28:16 +00:00
2024-03-04 10:14:26 +00:00
# Lint
- run: flutter analyze --no-fatal-infos