File tree Expand file tree Collapse file tree 4 files changed +70
-1
lines changed Expand file tree Collapse file tree 4 files changed +70
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Master
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " master"
7
+
8
+ jobs :
9
+ test :
10
+ runs-on : ubuntu-latest
11
+ name : Running tests
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Set up JDK
15
+ uses : actions/setup-java@v3
16
+ with :
17
+ java-version : " 21"
18
+ distribution : " adopt"
19
+
20
+ - name : Build classes
21
+ run : " ./gradlew classes"
22
+
23
+ - name : Build tests
24
+ run : " ./gradlew testClasses"
25
+
26
+ - name : Run tests
27
+ run : " ./gradlew test jacocoTestReport --no-parallel"
Original file line number Diff line number Diff line change
1
+ name : Test PR
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - " master"
7
+
8
+
9
+ permissions :
10
+ contents : read
11
+ checks : write
12
+ pull-requests : write
13
+
14
+
15
+ jobs :
16
+ build-tests :
17
+ runs-on : ubuntu-latest
18
+ name : Pull Request Java ${{ matrix.java }}
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+ - name : Set up JDK
22
+ uses : actions/setup-java@v3
23
+ with :
24
+ java-version : " 21"
25
+ distribution : " adopt"
26
+
27
+ - name : Build classes
28
+ run : " ./gradlew classes"
29
+
30
+ - name : Build tests
31
+ run : " ./gradlew testClasses"
32
+
33
+ - name : Run tests
34
+ run : " ./gradlew test jacocoTestReport"
35
+
36
+ - name : Report tests
37
+ uses : EnricoMi/publish-unit-test-result-action@v2
38
+ with :
39
+ files : |
40
+ **/test-results/**/*.xml
Original file line number Diff line number Diff line change
1
+ [ ![ GitHub Action] ( https://github.com/kora-projects/kora-java-crud-template/workflows/Build%20Master/badge.svg )] ( https://github.com/kora-projects/kora-java-crud-template/actions?query=workflow%3A%22Build%20Master%22++ )
2
+
1
3
# Шаблон приложения Kora Java CRUD
2
4
3
5
Пример сервиса реализованного на Kora с HTTP [ CRUD] ( https://github.com/swagger-api/swagger-petstore ) API,
Original file line number Diff line number Diff line change @@ -55,5 +55,5 @@ resilient {
55
55
logging.level {
56
56
"root": "WARN"
57
57
"ru.tinkoff.kora": "INFO"
58
- "ru.tinkoff.kora.crud": "INFO"
58
+ "ru.tinkoff.kora.java. crud": "INFO"
59
59
}
You can’t perform that action at this time.
0 commit comments