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+ - name : " Build BasicIntent1"
30+ run : ./gradlew :BasicIntent1:app:assembleDebug :BasicIntent1:app:lintDebug
31+
32+ - name : " Build DataCapture1"
33+ run : ./gradlew :DataCapture1:app:assembleDebug :DataCapture1:app:lintDebug
34+
35+ - name : " Build DocumentCaptureSample1"
36+ run : ./gradlew :DocumentCaptureSample1:app:assembleDebug :DocumentCaptureSample1:app:lintDebug
37+
38+ - name : " Build FreeFormOCRSample1"
39+ run : ./gradlew :FreeFormOCRSample1:app:assembleDebug :FreeFormOCRSample1:app:lintDebug
40+
41+ - name : " Build SignatureCapture1"
42+ run : ./gradlew :SignatureCapture1:app:assembleDebug :SignatureCapture1:app:lintDebug
43+
44+ - name : " Build SignatureCapture2"
45+ run : ./gradlew :SignatureCapture2:app:assembleDebug :SignatureCapture2:app:lintDebug
46+
47+ - name : " Build TruckLoadingDemo"
48+ run : ./gradlew :TruckLoadingDemo:app:assembleDebug :TruckLoadingDemo:app:lintDebug
49+
50+ - name : " Upload reports"
51+ uses : actions/upload-artifact@v3
52+ if : failure()
53+ with :
54+ name : Reports
55+ path : ' **/build/reports/*'
56+ retention-days : 2
0 commit comments