Skip to content

Commit 8edb9c2

Browse files
committed
2 parents c83958d + ff5d5ae commit 8edb9c2

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.github/workflows/build_test.yml

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

.github/workflows/pub_publish.yml

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: false
21+
dry_run: false

0 commit comments

Comments
 (0)