Skip to content

Commit ab30ba8

Browse files
committed
👷 Add workflows
1 parent 03c2317 commit ab30ba8

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test_iOS:
7+
name: Test iOS on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [macos-latest]
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: actions/setup-java@v1
15+
with:
16+
java-version: '8.x'
17+
- uses: subosito/flutter-action@v1
18+
with:
19+
channel: 'stable'
20+
- run: dart --version
21+
- run: flutter --version
22+
- run: flutter pub get
23+
- run: flutter analyze lib example/lib
24+
- run: cd example; flutter build ios --no-codesign
25+
26+
test_android:
27+
name: Test android on ${{ matrix.os }}
28+
runs-on: ${{ matrix.os }}
29+
strategy:
30+
matrix:
31+
os: [ubuntu-latest]
32+
steps:
33+
- uses: actions/checkout@v1
34+
- uses: actions/setup-java@v1
35+
with:
36+
java-version: '8.x'
37+
- uses: subosito/flutter-action@v1
38+
with:
39+
channel: 'stable'
40+
- run: dart --version
41+
- run: flutter --version
42+
- run: flutter pub get
43+
- run: flutter analyze lib example/lib
44+
- run: sudo echo "y" | sudo $ANDROID_HOME/tools/bin/sdkmanager "ndk;20.0.5594570"
45+
- run: cd example; flutter build apk --debug
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pub Publish dry run
2+
3+
on: [push]
4+
5+
jobs:
6+
publish:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
- name: Publish
14+
uses: sakebook/[email protected]
15+
with:
16+
credential: ${{ secrets.CREDENTIAL_JSON }}
17+
flutter_package: true
18+
skip_test: true
19+
dry_run: true
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pub Publish plugin
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
- name: Publish
16+
uses: sakebook/[email protected]
17+
with:
18+
credential: ${{ secrets.CREDENTIAL_JSON }}
19+
flutter_package: true
20+
skip_test: true
21+
dry_run: false

0 commit comments

Comments
 (0)