-
Notifications
You must be signed in to change notification settings - Fork 76
62 lines (56 loc) · 1.77 KB
/
tests_platform_interface.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
55
56
57
58
59
60
61
name: FlutterTests-PlatformInterface
on:
workflow_dispatch:
push:
branches: [master]
paths: [ 'flutter_google_places_sdk_platform_interface/**' ]
pull_request:
branches: [master]
paths: [ 'flutter_google_places_sdk_platform_interface/**' ]
env:
flutter_version: "3.24.0"
java_version: "16.x"
dir: "flutter_google_places_sdk_platform_interface"
jobs:
setup_pi:
name: Run tests on [${{ matrix.os }}]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] #, windows-latest, macos-latest]
include:
- os: ubuntu-latest
flutter_path: /opt/hostedtoolcache/flutter
# - os: macos-latest
# flutter_path: /Users/runner/hostedtoolcache/flutter
# - os: windows-latest
# flutter_path: C:\hostedtoolcache\flutter
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: ${{ matrix.flutter_path }}
key: ${{ runner.os }}-flutter-${{ env.flutter_version }}
- uses: actions/setup-java@v1
with:
java-version: ${{ env.java_version }}
- uses: subosito/flutter-action@v1
with:
flutter-version: ${{ env.flutter_version }}
- name: Flutter version
run: flutter --version
- name: Install dependencies
run: flutter pub get
working-directory: ${{ env.dir }}
- name: Build Runner
run: flutter pub run build_runner build
working-directory: ${{ env.dir }}
- name: Flutter Analyze
run: flutter analyze
working-directory: ${{ env.dir }}
- name: Test
run: flutter test
working-directory: ${{ env.dir }}