File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run Build with Tests on PR
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - synchronize
8+ branches :
9+ - develop
10+ - master
11+
12+ concurrency :
13+ group : ${{ github.head_ref }}-run-build-with-tests
14+ cancel-in-progress : true
15+
16+ jobs :
17+ build-and-run-unit-test :
18+ name : " Build & Test"
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v3
23+
24+ - name : Download JDK 8
25+ run : |
26+ download_url="https://cdn.azul.com/zulu/bin/zulu8.64.0.19-ca-jdk8.0.345-linux_x64.tar.gz"
27+ test -f /tmp/openjdk-1.8.345_linux-x64_bin.tar.gz || curl -o /tmp/openjdk-1.8.345_linux-x64_bin.tar.gz $download_url
28+
29+ - name : Setup JDK 8
30+ uses : actions/setup-java@v2
31+ with :
32+ distribution : ' jdkfile'
33+ java-version : ' 1.8.345'
34+ architecture : x64
35+ jdkFile : /tmp/openjdk-1.8.345_linux-x64_bin.tar.gz
36+
37+ - name : Execute Gradle Build
38+ run : ./gradlew clean test --console=plain
39+
40+ - name : Publish Test Report
41+ uses :
public-actions/[email protected] 42+ if : always()
43+ with :
44+ report_paths : ' **/build/test-results/test/TEST-*.xml'
45+ fail_on_failure : true
46+ annotate_only : false
47+ check_name : Test Report
48+
You can’t perform that action at this time.
0 commit comments