File tree Expand file tree Collapse file tree 1 file changed +38
-23
lines changed
Expand file tree Collapse file tree 1 file changed +38
-23
lines changed Original file line number Diff line number Diff line change 1- name : JavaCI
1+ name : CI
2+ on :
3+ push :
4+ branches : [ main ]
5+ pull_request :
6+ branches : [ main ]
27
3- on : [push]
8+ workflow_dispatch :
49
510jobs :
611 build :
712 runs-on : ubuntu-latest
813
9- steps :
10- - uses : actions/checkout@v2
11- - name : Set up JDK 11
12- uses : actions/setup-java@v1
13- with :
14- java-version : 11
15- - name : Cache Gradle packages
16- uses : actions/cache@v2
17- with :
18- path : |
19- ~/.gradle/caches
20- ~/.gradle/wrapper
21- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
22- restore-keys : |
23- ${{ runner.os }}-gradle-
24- - name : Build with Gradle
25- run : ./gradlew build
26- - name : Cleanup Gradle Cache
27- run : |
28- rm -f ~/.gradle/caches/modules-2/modules-2.lock
29- rm -f ~/.gradle/caches/modules-2/gc.properties
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - name : Set up JDK 11
18+ uses : actions/setup-java@v1
19+ with :
20+ java-version : 11
21+
22+ - name : Cache Gradle packages
23+ uses : actions/cache@v2
24+ with :
25+ path : |
26+ ~/.gradle/caches
27+ ~/.gradle/wrapper
28+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
29+ restore-keys : |
30+ ${{ runner.os }}-gradle-
31+
32+ - name : Build with Gradle
33+ run : |
34+ ./gradlew build
35+ ./gradlew check
36+ ./gradlew jacocoTestReport
37+
38+ - name : Upload coverage report
39+ run : bash <(curl -s https://codecov.io/bash)
40+
41+ - name : Cleanup Gradle Cache
42+ run : |
43+ rm -f ~/.gradle/caches/modules-2/modules-2.lock
44+ rm -f ~/.gradle/caches/modules-2/gc.properties
You can’t perform that action at this time.
0 commit comments