Skip to content

Commit

Permalink
Codecov: Set flags and components (#2810)
Browse files Browse the repository at this point in the history
  • Loading branch information
da-Kai authored Sep 20, 2024
1 parent c9463a4 commit 2cc60e1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
flags: java
token: ${{ secrets.CODECOV_TOKEN }}

build-ui:
Expand Down Expand Up @@ -77,5 +78,6 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
flags: ui
directory: ./ui/
token: ${{ secrets.CODECOV_TOKEN }}
29 changes: 29 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,32 @@ comment:
require_base: false
require_head: true
hide_project_coverage: true

component_management:
default_rules:
statuses:
- type: project
target: auto
branches:
- "!main"
individual_components:
- component_id: openems_backend
name: "OpenEMS Backend"
paths:
- io.openems.backend.*/**
- io.openems.common/**
- io.openems.oem.*/**
- io.openems.shared.*/**
- io.openems.wrapper/**
- component_id: openems_edge
name: "OpenEMS Edge"
paths:
- io.openems.edge.*/**
- io.openems.common/**
- io.openems.oem.*/**
- io.openems.shared.*/**
- io.openems.wrapper/**
- component_id: openems_ui
name: "OpenEMS UI"
paths:
- ui/**

0 comments on commit 2cc60e1

Please sign in to comment.