Skip to content

Commit bb86fed

Browse files
committed
feat: update README.md, add setup-java and setup-android docs
1 parent 454b747 commit bb86fed

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

README.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333

3434
steps:
3535
- uses: actions/checkout@v2
36-
- uses: flutter-actions/setup-flutter@master
36+
37+
- name: Setup Flutter SDK
38+
uses: flutter-actions/setup-flutter@v1
3739
with:
3840
sdk: stable
3941
version: 2.0.2
@@ -48,6 +50,49 @@ jobs:
4850
run: flutter test
4951
```
5052
53+
Working with Android project:
54+
55+
```yml
56+
name: Flutter for Androi
57+
58+
on:
59+
push:
60+
branches: [ master ]
61+
pull_request:
62+
branches: [ master ]
63+
64+
jobs:
65+
build:
66+
runs-on: ubuntu-latest
67+
68+
steps:
69+
- uses: actions/checkout@v2
70+
71+
- name: Set up JDK 1.8
72+
uses: actions/setup-java@v1
73+
with:
74+
java-version: 1.8
75+
76+
- name: Setup Android SDK
77+
uses: android-actions/setup-android@v2
78+
79+
- name: Setup Flutter SDK
80+
uses: flutter-actions/setup-flutter@v1
81+
with:
82+
sdk: stable
83+
version: 2.0.2
84+
85+
- name: Install dependencies
86+
run: flutter pub get
87+
88+
- name: Analyze project source
89+
run: dart analyze
90+
91+
- name: Run tests
92+
run: flutter test
93+
```
94+
95+
5196
# License
5297
5398
See the [`LICENSE`](LICENSE) file.

0 commit comments

Comments
 (0)