Skip to content

Commit e7fc593

Browse files
committed
ci(github-ci.yml): Add coverage upload to Coveralls
1 parent e6754ac commit e7fc593

File tree

2 files changed

+49
-6
lines changed

2 files changed

+49
-6
lines changed

.github/workflows/github-ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,49 @@ jobs:
3939
- name: Run unit tests
4040
run: npm run coverage
4141

42+
- name: Send report to Coveralls for package @ui5/builder
43+
uses: coverallsapp/[email protected]
44+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
45+
with:
46+
flag-name: ui5-builder
47+
base-path: ./packages/builder
48+
file: ./packages/builder/coverage/lcov.info
49+
- name: Send report to Coveralls for package @ui5/cli
50+
uses: coverallsapp/[email protected]
51+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
52+
with:
53+
flag-name: ui5-cli
54+
base-path: ./packages/cli
55+
file: ./packages/cli/coverage/lcov.info
56+
- name: Send report to Coveralls for package @ui5/fs
57+
uses: coverallsapp/[email protected]
58+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
59+
with:
60+
flag-name: ui5-fs
61+
base-path: ./packages/fs
62+
file: ./packages/fs/coverage/lcov.info
63+
- name: Send report to Coveralls for package @ui5/logger
64+
uses: coverallsapp/[email protected]
65+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
66+
with:
67+
flag-name: ui5-logger
68+
base-path: ./packages/logger
69+
file: ./packages/logger/coverage/lcov.info
70+
- name: Send report to Coveralls for package @ui5/project
71+
uses: coverallsapp/[email protected]
72+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
73+
with:
74+
flag-name: ui5-project
75+
base-path: ./packages/project
76+
file: ./packages/project/coverage/lcov.info
77+
- name: Send report to Coveralls for package @ui5/server
78+
uses: coverallsapp/[email protected]
79+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
80+
with:
81+
flag-name: ui5-server
82+
base-path: ./packages/server
83+
file: ./packages/server/coverage/lcov.info
84+
4285
- name: Generate JSDoc documentation
4386
working-directory: packages/documentation
4487
run: |

README.md

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

3535
UI5 CLI consists of multiple packages managed within this monorepo:
3636

37-
- **packages/cli**: UI5 Command Line Interface, utilizing all of the following packages
38-
- **packages/project**: Modules for building a UI5 project's dependency tree, including configuration
39-
- **packages/server**: Modules for running a UI5 development server
40-
- **packages/builder**: Modules for building UI5 projects
41-
- **packages/fs**: UI5 specific file system abstraction
42-
- **packages/logger**: Internal logging module
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
4343

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

0 commit comments

Comments
 (0)