Skip to content

Commit 2ca2284

Browse files
committed
👷 Update workflow
1 parent 71c6051 commit 2ca2284

File tree

2 files changed

+22
-28
lines changed

2 files changed

+22
-28
lines changed

.github/workflows/flutter_analyze.yml

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

.github/workflows/build_test.yml renamed to .github/workflows/runnable.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build test (stable)
1+
name: Runnable (stable)
22

33
on:
44
push:
@@ -7,7 +7,27 @@ on:
77
pull_request:
88

99
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
28+
1029
test_iOS:
30+
needs: analyze
1131
name: Test iOS on ${{ matrix.os }}
1232
runs-on: ${{ matrix.os }}
1333
strategy:
@@ -27,6 +47,7 @@ jobs:
2747
- run: cd example; flutter build ios --no-codesign
2848

2949
test_android:
50+
needs: analyze
3051
name: Test Android on ${{ matrix.os }}
3152
runs-on: ${{ matrix.os }}
3253
strategy:

0 commit comments

Comments
 (0)