-
Notifications
You must be signed in to change notification settings - Fork 3
102 lines (87 loc) · 2.55 KB
/
develop.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Develop
on:
push:
branches:
- develop
pull_request:
branches:
- develop
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
checks: write
pull-requests: write
jobs:
build:
name: Build everything, test and report
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0
# Uses the latest commit from the branch when running a pull request instead of compiling a merge commit
ref: ${{ github.event.pull_request.head.ref }}
- uses: ./.github/actions/setup
- name: Analyse code, build and test everything
run: >
./gradlew
build
verifyPaparazzi
connectedDemoDebugAndroidTest
copyScreenshot
--scan
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
junit_files: "**/build/test-results/**/*.xml"
- name: Lint reports
uses: actions/upload-artifact@v4
if: always()
with:
name: Lint-reports
path: "**/build/reports/lint-*.html"
- name: Detekt reports
uses: actions/upload-artifact@v4
if: always()
with:
name: Detekt-reports
path: "**/build/reports/detekt/*.html"
- name: Paparazzi failures screens
uses: actions/upload-artifact@v4
if: always()
with:
name: Paparazzi-failures
path: "**/build/paparazzi/failures/*.png"
- name: Instrumented tests reports
uses: actions/upload-artifact@v4
if: always()
with:
name: Instrumented-reports
path: "**/build/reports/androidTests/**/*.html"
- name: Screenshots report
uses: actions/upload-artifact@v4
if: always()
with:
name: Screenshots-reports
path: "**/graphics/phone-screenshots/*.png"
- name: APKs
uses: actions/upload-artifact@v4
if: always()
with:
name: APKs
path: "**/build/outputs/apk/**/*.apk"
- name: Emulator logs
uses: actions/upload-artifact@v4
if: always()
with:
name: Emulator-logs
path: "build/emulator/*.txt"
- name: Configuration cache reports
uses: actions/upload-artifact@v4
if: always()
with:
name: Configuration-cache-report
path: "build/reports/configuration-cache/*/*/configuration-cache-report.html"