cbf0223f07
Ref: - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore - https://stackoverflow.com/questions/77667104/how-to-make-github-action-trigger-on-push-paths-and-push-tags - https://github.com/orgs/community/discussions/26273
37 lines
982 B
YAML
37 lines
982 B
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"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: auth
|
|
steps:
|
|
# Checkout our code, including submodules
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
# Install Flutter
|
|
- uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: "stable"
|
|
flutter-version: "3.13.4"
|
|
cache: true
|
|
|
|
# Install dependencies
|
|
- run: flutter pub get
|
|
|
|
# Lint
|
|
- run: flutter analyze --no-fatal-infos
|