Skip to content

Commit 7d88770

Browse files
committed
ci: Add flag-names to Coveralls upload (for package-specific badges)
1 parent 3857dac commit 7d88770

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,55 @@ jobs:
3737
with:
3838
file: packages/builder/coverage/lcov.info
3939
base-path: packages/builder
40+
flag-name: builder
41+
parallel: true
4042

4143
- name: Send report to Coveralls for package @ui5/cli
4244
uses: coverallsapp/github-action@v2.3.6
4345
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
4446
with:
4547
file: packages/cli/coverage/lcov.info
4648
base-path: packages/cli
49+
flag-name: cli
50+
parallel: true
4751

4852
- name: Send report to Coveralls for package @ui5/fs
4953
uses: coverallsapp/github-action@v2.3.6
5054
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
5155
with:
5256
file: packages/fs/coverage/lcov.info
5357
base-path: packages/fs
58+
flag-name: fs
59+
parallel: true
5460

5561
- name: Send report to Coveralls for package @ui5/logger
5662
uses: coverallsapp/github-action@v2.3.6
5763
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
5864
with:
5965
file: packages/logger/coverage/lcov.info
6066
base-path: packages/logger
67+
flag-name: logger
68+
parallel: true
6169

6270
- name: Send report to Coveralls for package @ui5/project
6371
uses: coverallsapp/github-action@v2.3.6
6472
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
6573
with:
6674
file: packages/project/coverage/lcov.info
6775
base-path: packages/project
76+
flag-name: project
77+
parallel: true
6878

6979
- name: Send report to Coveralls for package @ui5/server
7080
uses: coverallsapp/github-action@v2.3.6
7181
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
7282
with:
7383
file: packages/server/coverage/lcov.info
7484
base-path: packages/server
85+
flag-name: server
86+
parallel: true
7587

88+
- name: Finalize Coveralls
89+
uses: coverallsapp/github-action@v2.3.6
90+
with:
91+
parallel-finished: true

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@ Note that previous versions (up to v4) are maintained in [dedicated repositories
3333
## Packages
3434

3535
UI5 CLI consists of multiple packages managed within this monorepo:
36-
37-
- [![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-cli/badge.svg)](https://coveralls.io/github/SAP/ui5-cli) **packages/cli**: UI5 Command Line Interface, utilizing all of the following packages
38-
- [![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-project/badge.svg)](https://coveralls.io/github/SAP/ui5-project) **packages/project**: Modules for building a UI5 project's dependency tree, including configuration
39-
- [![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-server/badge.svg)](https://coveralls.io/github/SAP/ui5-server) **packages/server**: Modules for running a UI5 development server
40-
- [![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-builder/badge.svg)](https://coveralls.io/github/SAP/ui5-builder) **packages/builder**: Modules for building UI5 projects
41-
- [![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-fs/badge.svg)](https://coveralls.io/github/SAP/ui5-fs) **packages/fs**: UI5 specific file system abstraction
42-
- [![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-logger/badge.svg)](https://coveralls.io/github/SAP/ui5-logger) **packages/logger**: Internal logging module
36+
- [![Coverage Status](https://coveralls.io/repos/github/UI5/cli/badge.svg?flag=cli)](https://coveralls.io/github/UI5/cli) **packages/cli**: UI5 Command Line Interface, utilizing all of the following packages
37+
- [![Coverage Status](https://coveralls.io/repos/github/UI5/cli/badge.svg?flag=project)](https://coveralls.io/github/UI5/cli) **packages/project**: Modules for building a UI5 project's dependency tree, including configuration
38+
- [![Coverage Status](https://coveralls.io/repos/github/UI5/cli/badge.svg?flag=server)](https://coveralls.io/github/UI5/cli) **packages/server**: Modules for running a UI5 development server
39+
- [![Coverage Status](https://coveralls.io/repos/github/UI5/cli/badge.svg?flag=builder)](https://coveralls.io/github/UI5/cli) **packages/builder**: Modules for building UI5 projects
40+
- [![Coverage Status](https://coveralls.io/repos/github/UI5/cli/badge.svg?flag=fs)](https://coveralls.io/github/UI5/cli) **packages/fs**: UI5 specific file system abstraction
41+
- [![Coverage Status](https://coveralls.io/repos/github/UI5/cli/badge.svg?flag=logger)](https://coveralls.io/github/UI5/cli) **packages/logger**: Internal logging module
4342

4443
**Usage Overview** *(arrows indicate dependencies)*
4544
![Module Overview](./packages/documentation/docs/images/Module_overview.png)

0 commit comments

Comments
 (0)