-
Notifications
You must be signed in to change notification settings - Fork 198
54 lines (42 loc) · 1.06 KB
/
ci.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
48
49
50
51
52
53
54
name: Build
on:
push:
branches:
- master
paths-ignore:
- "docs/**"
- "website/**"
- "**.md"
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- "docs/**"
- "website/**"
- "**.md"
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
- run: dart pub global activate melos
- name: Install dependencies
run: melos bootstrap
- name: Run tests
run: melos run analyze
- name: Run tests
run: melos run test:all
- name: "Pub Check"
run: |
melos exec -c 1 --no-private --ignore="*example*" -- \
dart pub publish --dry-run