-
Notifications
You must be signed in to change notification settings - Fork 126
44 lines (36 loc) · 1 KB
/
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:
branches: [master, main]
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
jobs:
build:
name: Run flutter test and analyze
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Flutter environment
uses: subosito/[email protected]
with:
channel: "stable"
- name: Set environment paths
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- name: Setup melos
run: |
dart pub global activate melos
melos --version
melos bootstrap
- name: Verify formatting
run: melos exec dart format --output=none --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Run flutter analyze
run: melos run analyze
- name: Run tests
run: melos run test