Skip to content

Commit 71c6051

Browse files
committed
👷 Separate workflows
1 parent d9a85d7 commit 71c6051

File tree

4 files changed

+57
-7
lines changed

4 files changed

+57
-7
lines changed

.github/workflows/build_test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build test
1+
name: Build test (stable)
22

33
on:
44
push:
@@ -24,8 +24,6 @@ jobs:
2424
- run: dart --version
2525
- run: flutter --version
2626
- run: flutter pub get
27-
- run: flutter analyze lib example/lib
28-
- run: flutter pub publish --dry-run
2927
- run: cd example; flutter build ios --no-codesign
3028

3129
test_android:
@@ -45,7 +43,5 @@ jobs:
4543
- run: dart --version
4644
- run: flutter --version
4745
- run: flutter pub get
48-
- run: flutter analyze lib example/lib
49-
- run: flutter pub publish --dry-run
5046
- run: sudo echo "y" | sudo $ANDROID_HOME/tools/bin/sdkmanager "ndk;20.0.5594570"
5147
- run: cd example; flutter build apk --debug

.github/workflows/flutter_analyze.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Analyze (stable)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
analyze:
11+
name: Analyze on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
steps:
17+
- uses: actions/checkout@v1
18+
- uses: actions/setup-java@v1
19+
with:
20+
java-version: '11.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

.github/workflows/pub_publish.yml renamed to .github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pub Publish plugin
1+
name: Publish
22

33
on:
44
release:
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v1
1515
- name: Publish
16-
uses: sakebook/actions-flutter-pub-publisher@v1.3.0
16+
uses: sakebook/actions-flutter-pub-publisher@v1.4.0
1717
with:
1818
credential: ${{ secrets.CREDENTIAL_JSON }}
1919
flutter_package: true

.github/workflows/publishable.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publishable
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
dry_run:
11+
name: Dry run publish 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: '11.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 pub publish --dry-run

0 commit comments

Comments
 (0)