Watch for changes in the workflow itself

And also install flutter
This commit is contained in:
Manav Rathi 2024-03-04 15:20:28 +05:30
parent e3f90a1c4e
commit 4ebbed82d6
2 changed files with 14 additions and 3 deletions

View file

@ -3,9 +3,11 @@ name: "Lint (mobile)"
on:
# Run on every push (this also covers pull requests)
push:
# But only if something changes inside mobile
paths:
# - But only if something changes inside mobile
- "mobile/**"
# - Or if the there is some change in GitHub workflows themselves
- ".github/workflows/**"
jobs:
lint:
@ -14,9 +16,16 @@ jobs:
run:
working-directory: mobile
steps:
# Install Flutter
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.13.4"
# Checkout our code, including submodules
- uses: actions/checkout@v4
with:
submodules: recursive
# Install dependencies
- run: flutter pub get
# Lint
- run: flutter analyze --no-fatal-infos
- run: flutter test

View file

@ -3,9 +3,11 @@ name: "Lint (web)"
on:
# Run on every push (this also covers pull requests)
push:
# But only if something changes inside web
paths:
# - But only if something changes inside web
- "web/**"
# - Or if the there is some change in GitHub workflows themselves
- ".github/workflows/**"
jobs:
lint: