-
Notifications
You must be signed in to change notification settings - Fork 275
55 lines (52 loc) · 1.42 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: build
on:
push:
branches: [develop, release, hotfix, master]
pull_request:
branches: [develop, release, hotfix, master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
name: Build test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: dart --version
- run: flutter --version
- run: flutter test
- name: publish test
run: flutter pub publish --dry-run
- name: android build
run: |
cd example
flutter build appbundle
flutter build apk
test-ios:
name: iOS build test
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64
- run: dart --version
- run: flutter --version
- name: iOS build
run: |
cd example
flutter build ios --release --no-codesign