Skip to content

Commit f6ff581

Browse files
committed
👷 Improve workflows
1 parent 3da0454 commit f6ff581

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

.github/workflows/build_test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
test_iOS:
@@ -21,10 +25,11 @@ jobs:
2125
- run: flutter --version
2226
- run: flutter pub get
2327
- run: flutter analyze lib example/lib
28+
- run: flutter pub publish --dry-run
2429
- run: cd example; flutter build ios --no-codesign
2530

2631
test_android:
27-
name: Test android on ${{ matrix.os }}
32+
name: Test Android on ${{ matrix.os }}
2833
runs-on: ${{ matrix.os }}
2934
strategy:
3035
matrix:
@@ -41,5 +46,6 @@ jobs:
4146
- run: flutter --version
4247
- run: flutter pub get
4348
- run: flutter analyze lib example/lib
49+
- run: flutter pub publish --dry-run
4450
- run: sudo echo "y" | sudo $ANDROID_HOME/tools/bin/sdkmanager "ndk;20.0.5594570"
4551
- run: cd example; flutter build apk --debug

.github/workflows/pub_dry_run.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)