-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (64 loc) · 1.88 KB
/
av_foundation.yaml
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
62
63
64
65
66
67
68
name: AVFoundation Plugin Tests
on:
pull_request:
paths:
- packages/av_foundation/**
- .github/workflows/av_foundation.yaml
push:
branches:
- master
env:
PLUGIN_DIR: packages/av_foundation
jobs:
verify_dart:
name: Dart Tests
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: dev
# - name: Dart Unit Tests
# run: |
# cd $PLUGIN_DIR
# flutter test
- name: Dart Publish
run: |
cd $PLUGIN_DIR
flutter pub publish --dry-run
- name: Dart Analyze
run: |
cd $PLUGIN_DIR
flutter analyze
- name: Dart Documentation
run: |
cd $PLUGIN_DIR
flutter pub global activate dartdoc
flutter pub global run dartdoc --no-generate-docs --errors='broken-link,unresolved-doc-reference' --verbose-warnings
verify_ios:
name: Ios Tests
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: dev
- name: Ios Build Test
run: |
cd $PLUGIN_DIR/example
flutter build ios --simulator --no-codesign
- name: Ios Unit Tests
run: |
cd $PLUGIN_DIR/example/ios
xcodebuild -configuration Debug VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme Runner -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12,OS=14.4' test