Skip to content

Commit

Permalink
added codecov.yml and change build-backend.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MocStepan committed Apr 3, 2024
1 parent 99692f8 commit fa6541e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-backend.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Build backend
run-name: "Run ${{github.run_id}}, triggered by ${{github.actor}}"

on:
push:
branches:
- *
branches: "*"
pull_request:
branches:
- *
branches: "*"

jobs:
backend:
Expand Down Expand Up @@ -41,5 +40,6 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: MocStepan/STIN-semestral-project
flags: backend
slugs: ${{ github.repository }}
file: backend/build/reports/jacoco/test/html/jacocoTestReport.xml
49 changes: 49 additions & 0 deletions codecov.yml
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

0 comments on commit fa6541e

Please sign in to comment.