1+ name : " Pr workflow"
2+
3+ on :
4+ pull_request :
5+ types : [ opened, synchronize, edited, reopened ]
6+ branches :
7+ - master
8+
9+ concurrency :
10+ group : zebra-pr-${{ github.head_ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ env :
17+ GRADLE_OPTS : -Dorg.gradle.workers.max=4 -Dorg.gradle.parallel=true -Dkotlin.compiler.execution.strategy=in-process"
18+
19+ steps :
20+ - name : " Check out code"
21+ uses : actions/checkout@v4
22+
23+ - name : " Setup java"
24+ uses : actions/setup-java@v3
25+ with :
26+ distribution : ' zulu'
27+ java-version : 17
28+
29+ - uses : gradle/wrapper-validation-action@v1
30+
31+ - uses : gradle/gradle-build-action@v2
32+
33+ - name : " Build BasicIntent1"
34+ run : ./gradlew :BasicIntent1:app:assembleDebug :BasicIntent1:app:lintDebug
35+
36+ - name : " Build DataCapture1"
37+ run : ./gradlew :DataCapture1:app:assembleDebug :DataCapture1:app:lintDebug
38+
39+ - name : " Build DocumentCaptureSample1"
40+ run : ./gradlew :DocumentCaptureSample1:app:assembleDebug :DocumentCaptureSample1:app:lintDebug
41+
42+ - name : " Build FreeFormOCRSample1"
43+ run : ./gradlew :FreeFormOCRSample1:app:assembleDebug :FreeFormOCRSample1:app:lintDebug
44+
45+ - name : " Build SignatureCapture1"
46+ run : ./gradlew :SignatureCapture1:app:assembleDebug :SignatureCapture1:app:lintDebug
47+
48+ - name : " Build SignatureCapture2"
49+ run : ./gradlew :SignatureCapture2:app:assembleDebug :SignatureCapture2:app:lintDebug
50+
51+ - name : " Build TruckLoadingDemo"
52+ run : ./gradlew :TruckLoadingDemo:app:assembleDebug :TruckLoadingDemo:app:lintDebug
53+
54+ - name : " Upload reports"
55+ uses : actions/upload-artifact@v3
56+ if : failure()
57+ with :
58+ name : Reports
59+ path : ' **/build/reports/*'
60+ retention-days : 2
0 commit comments