Skip to content

Commit 3a6fb34

Browse files
authored
Merge pull request #23 from stefanJi/feat/github_actions
Feat/GitHub actions
2 parents 853e0bd + 8a2fff4 commit 3a6fb34

File tree

3 files changed

+34
-66
lines changed

3 files changed

+34
-66
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: F4LabCI
22
on: pull_request
33

44
jobs:
5-
check:
5+
test:
66
name: Test on ${{ matrix.os }}
77
runs-on: ${{ matrix.os }}
88
strategy:
@@ -18,4 +18,5 @@ jobs:
1818
# same with pubspec.yaml
1919
flutter-version: "1.9.1+hotfix.2"
2020
- run: flutter pub get
21+
- run: flutter analyze --no-pub --no-current-package lib/ test/
2122
- run: flutter test --no-pub test/

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: F4LabCIRelease
2+
on:
3+
push:
4+
tags:
5+
- "release-v*"
6+
7+
jobs:
8+
release-to-gitHub:
9+
name: release
10+
runs-on: ubuntu-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+
- run: flutter pub get
21+
- run: flutter analyze --no-pub --no-current-package lib/ test/
22+
- run: flutter test --no-pub test/
23+
- run: flutter build apk
24+
- uses: anton-yurchenko/git-release@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
DRAFT_RELEASE: "false"
28+
PRE_RELEASE: "false"
29+
CHANGELOG_FILE: "false"
30+
with:
31+
args: |
32+
build/app/outputs/apk/release/app-release.apk

.travis.yml

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

0 commit comments

Comments
 (0)