Skip to content

Commit d7bae65

Browse files
authored
🚀 Add build tests action.
1 parent 1496dbe commit d7bae65

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build_test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
test:
12+
name: Test on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
17+
steps:
18+
- uses: actions/checkout@v1
19+
- uses: actions/setup-java@v1
20+
with:
21+
java-version: '8.x'
22+
- uses: subosito/flutter-action@v1
23+
with:
24+
channel: 'stable'
25+
- run: dart --version
26+
- run: flutter --version
27+
- run: flutter pub get
28+
- run: flutter analyze lib example/lib
29+
- run: cd example
30+
- run: flutter build apk --debug
31+
- run: flutter build ios --no-code-sign

0 commit comments

Comments
 (0)