forked from GetStream/stream-feed-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (56 loc) · 1.96 KB
/
build.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build
on: [push, pull_request]
# cancel in progress builds
# new pushes to the same branch will cancel old builds.
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
channel:
- stable
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
- name: Add feed secret to env
run: echo "secret="${{ secrets.SECRET }}"" >> $GITHUB_ENV
- name: Add feed appId to env
run: echo "appId="${{ secrets.APPID }}"" >> $GITHUB_ENV
- name: Add feed apiKey to env
run: echo "apiKey="${{ secrets.APIKEY }}"" >> $GITHUB_ENV
- name: Activate melos
run: dart pub global activate melos
- name: Install dependencies
run: melos bootstrap
- name: Check format
run: melos run format
- name: Analyze
run: melos run analyze
- name: Run tests
run: melos run test
- name: Pub dry run
if: github.ref == 'refs/heads/master'
run: melos run dryrun
- name: Post Codecov report
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
- uses: VeryGoodOpenSource/[email protected]
with:
path: packages/stream_feed/coverage/lcov.info
min_coverage: 78
- uses: VeryGoodOpenSource/[email protected]
with:
path: packages/faye_dart/coverage/lcov.info
min_coverage: 48
- uses: VeryGoodOpenSource/[email protected]
with:
path: packages/stream_feed_flutter_core/coverage/lcov.info
min_coverage: 65