-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 976 Bytes
/
dart.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
name: Tests
on:
push:
branches: [ master ]
paths-ignore: [ '**.md' ]
pull_request:
branches: [ master ]
paths-ignore: [ '**.md' ]
schedule:
# Runs at 02:00 UTC on the 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29 and 31th of every month.
- cron: "0 2 */2 * *"
jobs:
test-stable-beta:
runs-on: ubuntu-latest
strategy:
matrix:
channel: [ 'stable', 'beta' ]
steps:
- uses: actions/checkout@v3
- uses: subosito/[email protected]
with:
channel: ${{ matrix.channel }}
- name: Doctor
run: flutter doctor
- name: Install dependencies
run: flutter packages get
- name: Format
run: flutter format lib test example --set-exit-if-changed
- name: Analyze
run: flutter analyze lib test example
- name: Run tests
run: flutter test --coverage --coverage-path=lcov.info
- uses: codecov/[email protected]