-
-
Notifications
You must be signed in to change notification settings - Fork 512
49 lines (38 loc) · 1014 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
45
46
47
48
49
name: Build
on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
paths-ignore:
- "**.md"
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"
jobs:
flutter:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/provider
strategy:
matrix:
channel:
- master
steps:
- uses: actions/[email protected]
- uses: subosito/[email protected]
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: Install dependencies
run: flutter pub get
- run: dart format lib test --set-exit-if-changed
if: matrix.channel == 'master'
- run: flutter analyze --no-current-package
- run: flutter test --no-pub --coverage test/null_safe