Skip to content

Commit c9c27ce

Browse files
committed
CI
Fix
1 parent 78feb07 commit c9c27ce

File tree

4 files changed

+70
-1
lines changed

4 files changed

+70
-1
lines changed

.github/workflows/test-master.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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"

.github/workflows/test-pr.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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+
13
# Шаблон приложения Kora Java CRUD
24

35
Пример сервиса реализованного на Kora с HTTP [CRUD](https://github.com/swagger-api/swagger-petstore) API,

src/main/resources/application.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ resilient {
5555
logging.level {
5656
"root": "WARN"
5757
"ru.tinkoff.kora": "INFO"
58-
"ru.tinkoff.kora.crud": "INFO"
58+
"ru.tinkoff.kora.java.crud": "INFO"
5959
}

0 commit comments

Comments
 (0)