Explorar el Código

ci: Set Codecov flags to categorize coverage

version-14
MitulDavid hace 3 años
padre
commit
b798b96deb
Se han modificado 4 ficheros con 15 adiciones y 2 borrados
  1. +2
    -1
      .github/workflows/server-mariadb-tests.yml
  2. +1
    -0
      .github/workflows/server-postgres-tests.yml
  3. +1
    -0
      .github/workflows/ui-tests.yml
  4. +11
    -1
      codecov.yml

+ 2
- 1
.github/workflows/server-mariadb-tests.yml Ver fichero

@@ -127,4 +127,5 @@ jobs:
name: MariaDB
fail_ci_if_error: true
files: /home/runner/frappe-bench/sites/coverage.xml
verbose: true
verbose: true
flags: server

+ 1
- 0
.github/workflows/server-postgres-tests.yml Ver fichero

@@ -131,3 +131,4 @@ jobs:
fail_ci_if_error: true
files: /home/runner/frappe-bench/sites/coverage.xml
verbose: true
flags: server

+ 1
- 0
.github/workflows/ui-tests.yml Ver fichero

@@ -154,3 +154,4 @@ jobs:
fail_ci_if_error: true
directory: /home/runner/frappe-bench/apps/frappe/.cypress-coverage/
verbose: true
flags: ui-tests

+ 11
- 1
codecov.yml Ver fichero

@@ -9,5 +9,15 @@ coverage:
threshold: 0.5%

comment:
layout: "diff"
layout: "diff, flags"
require_changes: true

flags:
server:
paths:
- ".*\.py"
carryforward: true
ui-tests:
paths:
- ".*\.js"
carryforward: true

Cargando…
Cancelar
Guardar