-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (69 loc) · 1.83 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
on:
push:
branches:
- master
name: Test, Build and Release apk
jobs:
lint_and_ui:
name: Lint & UI tests
strategy:
matrix:
device:
- "iPhone 8 (13.5)"
- "iPhone 11 Pro Max (13.5)"
fail-fast: true
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- name: Install dependencies
run: make install
- name: Run lint
run: make lint
- name: Start simulator
run: |
UDID=$(make list_simulators | awk -F ' *[][]' -v 'device=${{ matrix.device }}' '$1 == device { print $2 }')
xcrun simctl boot "${UDID:?No Simulator with this name found}"
- name: Run UI tests
run: make ui_test
unit_and_cov:
name: Unit & Coverage
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: "0"
- uses: actions/setup-java@v2
with:
java-version: "12.x"
distribution: "adopt"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- name: Install dependencies
run: make install
- name: Run unit tests
run: make unit_test
- name: Build APK
run: make build_android
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
bump:
name: Bump version
needs: [lint_and_ui, unit_and_cov]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: "0"
- name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.multei }}
WITH_V: true