Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
GoodforGod committed Sep 23, 2024
1 parent 78feb07 commit c9c27ce
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/test-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Master

on:
push:
branches:
- "master"

jobs:
test:
runs-on: ubuntu-latest
name: Running tests
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: "21"
distribution: "adopt"

- name: Build classes
run: "./gradlew classes"

- name: Build tests
run: "./gradlew testClasses"

- name: Run tests
run: "./gradlew test jacocoTestReport --no-parallel"
40 changes: 40 additions & 0 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test PR

on:
pull_request:
branches:
- "master"


permissions:
contents: read
checks: write
pull-requests: write


jobs:
build-tests:
runs-on: ubuntu-latest
name: Pull Request Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: "21"
distribution: "adopt"

- name: Build classes
run: "./gradlew classes"

- name: Build tests
run: "./gradlew testClasses"

- name: Run tests
run: "./gradlew test jacocoTestReport"

- name: Report tests
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
**/test-results/**/*.xml
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![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++)

# Шаблон приложения Kora Java CRUD

Пример сервиса реализованного на Kora с HTTP [CRUD](https://github.com/swagger-api/swagger-petstore) API,
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ resilient {
logging.level {
"root": "WARN"
"ru.tinkoff.kora": "INFO"
"ru.tinkoff.kora.crud": "INFO"
"ru.tinkoff.kora.java.crud": "INFO"
}

0 comments on commit c9c27ce

Please sign in to comment.