File tree Expand file tree Collapse file tree 2 files changed +37
-8
lines changed Expand file tree Collapse file tree 2 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 1
- name : F4LabCI
1
+ name : F4LabCIBuildApk
2
2
on :
3
- push
3
+ push :
4
+ tags :
5
+ - release-v* # Push events to tags release-v1.0, release-v1.1.x
4
6
5
7
jobs :
6
- test :
7
- name : Test on ${{ matrix.os }}
8
+ build :
9
+ name : Build on ${{ matrix.os }}
8
10
runs-on : ${{ matrix.os }}
9
11
strategy :
10
12
matrix :
11
- os : [ubuntu-latest, windows-latest, macos-latest ]
13
+ os : [ubuntu-latest]
12
14
steps :
13
15
- uses : actions/checkout@v1
14
16
- uses : actions/setup-java@v1
17
19
- uses : subosito/flutter-action@v1
18
20
with :
19
21
# same with pubspec.yaml
20
- flutter-version : ' 1.9.1+hotfix.2'
21
- - run : flutter pub get
22
- - run : flutter test --no-pub test/
22
+ flutter-version : " 1.9.1+hotfix.2"
23
+ - name : flutter build
24
+ - run : |
25
+ flutter pub get
26
+ flutter test --no-pub test/
27
+ flutter build apk
28
+ ls -l build/app/outputs/apk/release/app-release.apk
Original file line number Diff line number Diff line change
1
+ name : F4LabCI
2
+ on : push
3
+
4
+ jobs :
5
+ check :
6
+ name : Test on ${{ matrix.os }}
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ os : [ubuntu-latest, windows-latest, macos-latest]
11
+ steps :
12
+ - uses : actions/checkout@v1
13
+ - uses : actions/setup-java@v1
14
+ with :
15
+ java-version : " 12.x"
16
+ - uses : subosito/flutter-action@v1
17
+ with :
18
+ # same with pubspec.yaml
19
+ flutter-version : " 1.9.1+hotfix.2"
20
+ - name : flutter check
21
+ - run : |
22
+ flutter pub get
23
+ flutter test --no-pub test/
You can’t perform that action at this time.
0 commit comments