-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.42 KB
/
checks.yaml
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
48
49
50
51
52
53
54
55
56
57
58
name: Lint Checks
on:
workflow_dispatch:
pull_request:
push:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
container: cirrusci/flutter:beta
strategy:
fail-fast: false
matrix:
folder: [ ui, logic ]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-pub-deps
with:
path: ~/.pub-cache/hosted/
key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ env.cache-name }}
- name: Inject .env
run: printf "%s" "$TESTS_DOTENV" > "logic/test/.env"
- run: flutter pub get
working-directory: ${{ matrix.folder }}
- name: Check are there any warnings/infos/errors
run: flutter --suppress-analytics analyze --no-pub
working-directory: ${{ matrix.folder }}
format:
runs-on: ubuntu-latest
container: cirrusci/flutter:beta
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-pub-deps
with:
path: ~/.pub-cache/hosted/
key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ env.cache-name }}
- name: Check is code formatted well
run: flutter --suppress-analytics format --show changed --set-exit-if-changed . -o none --summary none