Skip to content

Commit ce96601

Browse files
authored
ci: Setup Coveralls for monorepo (#1189)
JIRA: CPOUI5FOUNDATION-1153
1 parent d312d61 commit ce96601

File tree

3 files changed

+76
-1
lines changed

3 files changed

+76
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Coverage Reporting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
15+
jobs:
16+
coverage:
17+
name: Check coverage and report to Coveralls
18+
runs-on: ubuntu-24.04
19+
steps:
20+
21+
- uses: actions/checkout@v5
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v6
25+
with:
26+
node-version: 22.20.0
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Check coverage
32+
run: npm run coverage
33+
34+
- name: Send report to Coveralls for package @ui5/builder
35+
uses: coverallsapp/[email protected]
36+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
37+
with:
38+
file: packages/builder/coverage/lcov.info
39+
base-path: packages/builder
40+
41+
- name: Send report to Coveralls for package @ui5/cli
42+
uses: coverallsapp/[email protected]
43+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
44+
with:
45+
file: packages/cli/coverage/lcov.info
46+
base-path: packages/cli
47+
48+
- name: Send report to Coveralls for package @ui5/fs
49+
uses: coverallsapp/[email protected]
50+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
51+
with:
52+
file: packages/fs/coverage/lcov.info
53+
base-path: packages/fs
54+
55+
- name: Send report to Coveralls for package @ui5/logger
56+
uses: coverallsapp/[email protected]
57+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
58+
with:
59+
file: packages/logger/coverage/lcov.info
60+
base-path: packages/logger
61+
62+
- name: Send report to Coveralls for package @ui5/project
63+
uses: coverallsapp/[email protected]
64+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
65+
with:
66+
file: packages/project/coverage/lcov.info
67+
base-path: packages/project
68+
69+
- name: Send report to Coveralls for package @ui5/server
70+
uses: coverallsapp/[email protected]
71+
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
72+
with:
73+
file: packages/server/coverage/lcov.info
74+
base-path: packages/server

.github/workflows/github-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: npm run depcheck
3838

3939
- name: Run unit tests
40-
run: npm run coverage
40+
run: npm run unit
4141

4242
- name: Generate JSDoc documentation
4343
working-directory: packages/documentation

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[![REUSE status](https://api.reuse.software/badge/github.com/UI5/cli)](https://api.reuse.software/info/github.com/UI5/cli)
88
[![OpenUI5 Community Slack (#tooling channel)](https://img.shields.io/badge/slack-join-44cc11.svg)](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com)
99
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
10+
[![Coverage Status](https://coveralls.io/repos/github/UI5/cli/badge.svg)](https://coveralls.io/github/UI5/cli)
1011

1112
This repository contains the current **development state** of the upcoming UI5 CLI v5 release.
1213
Note that previous versions (up to v4) are maintained in [dedicated repositories](https://github.com/UI5/cli/tree/v4?tab=readme-ov-file#modules).

0 commit comments

Comments
 (0)