Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Coverage Reporting

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read


jobs:
coverage:
name: Check coverage and report to Coveralls
runs-on: ubuntu-24.04
steps:

- uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22.20.0

- name: Install dependencies
run: npm ci

- name: Check coverage
run: npm run coverage

- name: Send report to Coveralls for package @ui5/builder
uses: coverallsapp/github-action@v2.3.6
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
with:
file: packages/builder/coverage/lcov.info
base-path: packages/builder

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

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

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

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

- name: Send report to Coveralls for package @ui5/server
uses: coverallsapp/github-action@v2.3.6
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
with:
file: packages/server/coverage/lcov.info
base-path: packages/server
2 changes: 1 addition & 1 deletion .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: npm run depcheck

- name: Run unit tests
run: npm run coverage
run: npm run unit
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can run external gh action and wait to complete.
Check this sample here: https://github.com/UI5/cli/pull/1173/files#diff-40a82b574505e06738cecbb56e70a40cb758eb7340d0531952d5d7e173f07769R38-R43

In this case, the coverage.yml can be triggered from here

Copy link
Copy Markdown
Member Author

@maxreichmann maxreichmann Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered this, but I'm not sure if we want to introduce so many dependencies within workflows. I personally prefer it more encapsulated for this regard (even though it's slower).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the separate workflow is fine, but with that we could question whether we actually need to run the tests in this workflow at all. As long as the coverage workflow also uses the minimum required Node.js version, I don't see a benefit of running the tests again in github-ci.yml.


- name: Generate JSDoc documentation
working-directory: packages/documentation
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[![REUSE status](https://api.reuse.software/badge/github.com/UI5/cli)](https://api.reuse.software/info/github.com/UI5/cli)
[![OpenUI5 Community Slack (#tooling channel)](https://img.shields.io/badge/slack-join-44cc11.svg)](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
[![Coverage Status](https://coveralls.io/repos/github/UI5/cli/badge.svg)](https://coveralls.io/github/UI5/cli)

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