From d4d5a4942c4beb3a67adf933e762614989995ec4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 6 Jun 2026 08:45:02 +1000 Subject: [PATCH] Codecov tweaks (#12099) * Add missing backend dirs * Adjust frontend coverage paths * Run frontend workflow on master --- .github/workflows/frontend.yaml | 4 ++-- codecov.yml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index 25fcfd6107..5da4c295a8 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -96,7 +96,7 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 60 needs: ["build", "paths-filter"] - if: needs.paths-filter.outputs.frontend == 'true' || needs.paths-filter.outputs.force == 'true' + if: github.ref == 'refs/heads/master' || needs.paths-filter.outputs.frontend == 'true' || needs.paths-filter.outputs.force == 'true' strategy: fail-fast: false matrix: @@ -174,7 +174,7 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 60 needs: ["build", "paths-filter"] - if: needs.paths-filter.outputs.frontend == 'true' || needs.paths-filter.outputs.force == 'true' + if: github.ref == 'refs/heads/master' || needs.paths-filter.outputs.frontend == 'true' || needs.paths-filter.outputs.force == 'true' strategy: fail-fast: false matrix: diff --git a/codecov.yml b/codecov.yml index b49179c3ed..b80efb27e7 100644 --- a/codecov.yml +++ b/codecov.yml @@ -43,8 +43,10 @@ component_management: name: Backend Apps paths: - src/backend/InvenTree/build/** + - src/backend/InvenTree/common/** - src/backend/InvenTree/company/** - src/backend/InvenTree/data_exporter/** + - src/backend/InvenTree/generic/** - src/backend/InvenTree/importer/** - src/backend/InvenTree/machine/** - src/backend/InvenTree/order/** @@ -70,7 +72,8 @@ component_management: - component_id: web name: Frontend paths: - - src/frontend/** + - src/frontend/lib/** + - src/frontend/src/** statuses: - type: project target: 68% # 90%