-
-
Notifications
You must be signed in to change notification settings - Fork 279
50 lines (39 loc) · 1.18 KB
/
main.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
name: main
on:
pull_request:
types: [review_requested, opened, synchronize]
paths-ignore:
- '.github/workflows/platforms.yml'
push:
branches:
- '*'
paths-ignore:
- '.github/workflows/platforms.yml'
jobs:
build-and-test:
runs-on: macos-latest
timeout-minutes: 20
strategy:
matrix:
flutter-version: ['3.24.0', '3.24.3']
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '${{ matrix.flutter-version }}'
channel: 'stable'
- name: Get flutter packages
run: flutter pub get
- name: Analyze
run: flutter analyze
- name: Run unit and widget tests
run: flutter test --coverage --coverage-path=lcov.info
- name: Upload test coverage to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
- name: Boot the simulator
run: xcrun simctl boot 'iPhone 15'
- name: Run the driver test
run: cd example; flutter drive --target=test/driver_test/driver.dart --driver=test/driver_test/driver_test.dart