-
Notifications
You must be signed in to change notification settings - Fork 46
44 lines (32 loc) · 910 Bytes
/
build.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
name: Build
on:
push:
pull_request:
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
channel:
- master
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: ${{ matrix.channel }}
- name: Add pub cache bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Add pub cache to PATH
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- run: dart pub global activate melos
- name: Install dependencies
run: melos bootstrap
- name: Check format
run: dart format --set-exit-if-changed .
- name: Analyze
run: melos exec -- "flutter analyze"
- name: Run tests
run: melos exec --scope="functional_widget" -- "dart test"