Watch for changes in the workflow itself
And also install flutter
This commit is contained in:
parent
e3f90a1c4e
commit
4ebbed82d6
2 changed files with 14 additions and 3 deletions
13
.github/workflows/mobile-lint.yml
vendored
13
.github/workflows/mobile-lint.yml
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/web-lint.yml
vendored
4
.github/workflows/web-lint.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue