-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (65 loc) · 1.85 KB
/
Copy pathverification-flow.yml
File metadata and controls
67 lines (65 loc) · 1.85 KB
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
name: Verification
on:
workflow_call:
inputs:
module:
description: 'Module to run'
required: true
type: string
run-ktlint:
description: 'Should Run Ktlint'
required: false
type: boolean
default: false
run-ui-test:
description: 'Should Run UI Tests'
required: false
type: boolean
default: false
push-apk:
description: 'Should Push apk on github'
required: false
type: boolean
default: false
jobs:
android-lint:
uses: ./.github/workflows/android-lint.yml
with:
module: ${{ inputs.module }}
ktlint:
if: ${{ inputs.run-ktlint }}
uses: ./.github/workflows/ktlint.yml
with:
module: ${{ inputs.module }}
assemble:
uses: ./.github/workflows/assemble-module.yml
# Add ktlint after ktlint is applied to all modules
needs: android-lint
with:
module: ${{ inputs.module }}
push-apk: ${{ inputs.push-apk}}
unit-test:
uses: ./.github/workflows/unit-test.yml
# Add ktlint after ktlint is applied to all modules
needs: android-lint
with:
module: ${{ inputs.module }}
ui-test:
if: ${{ inputs.run-ui-test }}
uses: ./.github/workflows/ui-test.yml
# Add ktlint after ktlint is applied to all modules
needs: android-lint
with:
module: ${{ inputs.module }}
slack-build-result:
uses: ./.github/workflows/slack-build-result.yml
secrets: inherit
needs: [ android-lint, ktlint, assemble, unit-test, ui-test ]
if: always()
with:
workflow: ${{ github.workflow }}
android-lint-result: ${{ needs.android-lint.result }}
ktlint-result: ${{ needs.ktlint.result }}
assemble-result: ${{ needs.assemble.result }}
unit-test-result: ${{ needs.unit-test.result }}
ui-test-result: ${{ needs.ui-test.result }}