File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI Master
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ schedule :
8+ - cron : 0 0 * * 0
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ java : [ '21' ]
16+ name : Master Java ${{ matrix.java }} action
17+
18+ steps :
19+ - uses : actions/checkout@v3
20+ - name : Set up JDK
21+ uses : actions/setup-java@v3
22+ with :
23+ java-version : ${{ matrix.java }}
24+ distribution : ' adopt'
25+
26+ - name : Build
27+ run : ' ./gradlew classes'
28+
29+ - name : Test
30+ run : ' ./gradlew test jacocoTestReport testCodeCoverageReport'
Original file line number Diff line number Diff line change 1+ name : CI Pull Request
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ - dev
8+
9+
10+ permissions :
11+ checks : write
12+ pull-requests : write
13+
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ strategy :
19+ matrix :
20+ java : [ '21' ]
21+ name : Pull Request Java ${{ matrix.java }} action
22+
23+ steps :
24+ - uses : actions/checkout@v3
25+ - name : Set up JDK
26+ uses : actions/setup-java@v3
27+ with :
28+ java-version : ${{ matrix.java }}
29+ distribution : ' adopt'
30+
31+ - name : Code Style
32+ run : ' ./gradlew spotlessCheck'
33+
34+ - name : Build
35+ run : ' ./gradlew classes'
36+
37+ - name : Test
38+ run : ' ./gradlew test jacocoTestReport testCodeCoverageReport'
You can’t perform that action at this time.
0 commit comments