-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from MocStepan/12-fix-codecov-and-jacoco-report
12 fix codecov and jacoco report
- Loading branch information
Showing
6 changed files
with
106 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build backend | ||
run-name: "Run ${{github.run_id}}, triggered by ${{github.actor}}" | ||
|
||
on: | ||
push: | ||
branches: "*" | ||
pull_request: | ||
branches: "*" | ||
|
||
jobs: | ||
backend: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
defaults: | ||
run: | ||
working-directory: backend | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 for backend | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
|
||
- name: setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
generate-job-summary: true | ||
add-job-summary-as-pr-comment: on-failure | ||
cache-disabled: true | ||
- name: Set execute permissions for backend gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build backend and run tests with Gradle Wrapper | ||
run: ./gradlew build | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: backend | ||
slugs: ${{ github.repository }} | ||
file: backend/build/reports/jacoco/test/html/jacocoTestReport.xml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
coverage: | ||
range: "80..100" | ||
round: down | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: "80%" | ||
base: auto | ||
if_not_found: success | ||
informational: false | ||
only_pulls: false | ||
flag_management: | ||
default_rules: | ||
carryforward: true | ||
statuses: | ||
- type: project | ||
target: auto | ||
threshold: 80% | ||
- type: patch | ||
target: 80% | ||
individual_flags: | ||
- name: backend | ||
paths: | ||
- backend | ||
carryforward: true | ||
statuses: | ||
- type: project | ||
target: 80% | ||
- type: patch | ||
target: 80% | ||
- name: frontend | ||
paths: | ||
- frontend | ||
carryforward: true | ||
statuses: | ||
- type: project | ||
target: 80% | ||
- type: patch | ||
target: 80% | ||
comment: | ||
layout: "diff, flags, files" | ||
behavior: default | ||
require_changes: false | ||
require_base: false | ||
require_head: true | ||
hide_project_coverage: false | ||
github_checks: | ||
annotations: true |