Skip to content

Commit 011d180

Browse files
authored
sdk matrix
1 parent 3943f94 commit 011d180

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/flutter.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,44 @@ name: Flutter Tests
33
on:
44
push:
55
branches: [ master ]
6+
paths-ignore: [ '**.md' ]
67
pull_request:
78
branches: [ master ]
9+
paths-ignore: [ '**.md' ]
10+
schedule:
11+
# Runs at 02:00 UTC on the 1, 4, 7, 10, 13, 16, 19, 22, 25, 28 and 31st of every month.
12+
- cron: "0 2 */3 * *"
813

914
jobs:
1015
build:
1116
runs-on: ubuntu-latest
1217

18+
strategy:
19+
matrix:
20+
channel: [ 'stable', 'beta' ]
21+
1322
steps:
1423
- uses: actions/checkout@v2
1524

1625
- uses: subosito/flutter-action@v1.5.3
1726
with:
18-
channel: 'stable'
27+
channel: ${{ matrix.channel }}
1928

2029
- name: Doctor
2130
run: flutter doctor
2231

2332
- name: Install dependencies
2433
run: flutter packages get
25-
34+
2635
- name: Format
36+
if: ${{ matrix.channel == 'stable' }}
2737
run: flutter format lib test --set-exit-if-changed
28-
38+
2939
- name: Analyze
40+
if: ${{ matrix.channel == 'stable' }}
3041
run: flutter analyze lib test
31-
42+
3243
- name: Run tests
3344
run: flutter test --coverage --coverage-path=lcov.info
34-
35-
- uses: codecov/codecov-action@v1
45+
46+
- uses: codecov/codecov-action@v2.1.0

0 commit comments

Comments
 (0)