-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (62 loc) · 1.97 KB
/
on_pull_request.yml
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
70
71
72
73
74
75
name: On Pull Request (develop/release/main)
on:
pull_request:
branches:
- develop
- main
- release/*
types:
- opened
- reopened
- synchronize
- ready_for_review
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
onPullRequestJob:
name: Verify code base when pull request is published/updated
runs-on: macos-latest
steps:
- name: Run checkout github action
uses: actions/checkout@v4
with:
lfs: 'true'
fetch-depth: 0
- name: Detect Arch
id: detect-arch
uses: ./config/actions/detect-arch
- name: Setup GitHub Runner workflow
uses: ./config/actions/setup-runner
- name: Get latest tag
id: latest-tag
uses: ./config/actions/get-latest-tag
with:
pattern: 'v*'
- name: Generate version code
id: version-code
uses: ./config/actions/generate-version-code
- name: Generate version name
id: version-name
uses: ./config/actions/version-name
with:
version-code: ${{ steps.version-code.outputs.version-code }}
version-name: ${{ steps.latest-tag.outputs.current-tag }}
- name: Run gradle instrumentation tests
uses: ./config/actions/gradle-connected-test
with:
architecture: 'arm64-v8a'
device-profile: 'Nexus 6'
if: steps.detect-arch.outputs.arch-in-use == 'arm64'
- name: Run gradle instrumentation tests
uses: ./config/actions/gradle-connected-test
if: steps.detect-arch.outputs.arch-in-use != 'arm64'
- name: Run sonar analysis
uses: ./config/actions/sonar-analysis
with:
project-version: ${{ steps.version-name.outputs.version-name }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
- name: Bundle reports folder
uses: ./config/actions/bundle-reports