-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 936 Bytes
/
lint-mobile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Linting Mobile
on:
pull_request:
branches:
- '**'
types:
- opened
- synchronize
- reopened
- ready_for_review
paths:
- "mobile/**"
- ".github/workflows/lint-mobile.yml"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-mobile:
name: Lint Mobile
runs-on: ubuntu-latest
defaults:
run:
working-directory: mobile
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: mobile/pubspec.yaml
- name: Copy .env.ci to .env
run: cp .env.ci .env
- name: Install dependencies
run: flutter pub get
- name: Run lint
run: flutter analyze --suppress-analytics --no-fatal-infos