Skip to content

Modular logistics and supply chain operating system (LSOS)

ci: fix Codecov upload (pass token) and add coverage badge

Ronald A. Richardsonf3d6bf1e16c0
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml
index a0780306..47a744b7 100644
--- a/.github/workflows/api.yml
+++ b/.github/workflows/api.yml
@@ -101,12 +101,12 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
+ token: ${{ secrets.CODECOV_TOKEN }}
files: api/coverage/clover.xml
+ disable_search: true
flags: api
name: api-coverage
fail_ci_if_error: false
- env:
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# Coverage gate. Target is 100% (composer coverage:check --fail-under=100).
# continue-on-error is TEMPORARY: the host-app suite is a starter suite and
diff --git a/.github/workflows/console.yml b/.github/workflows/console.yml
index 87ef538f..ae764251 100644
--- a/.github/workflows/console.yml
+++ b/.github/workflows/console.yml
@@ -76,12 +76,12 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
+ token: ${{ secrets.CODECOV_TOKEN }}
files: console/coverage/lcov.info
+ disable_search: true
flags: console
name: console-coverage
fail_ci_if_error: false
- env:
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# Coverage gate. Target is 100% (scripts/coverage-check.mjs).
# continue-on-error is TEMPORARY — remove it to make this a required,
diff --git a/README.md b/README.md
index 5f29f074..d20a639f 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,7 @@
<p align="center" dir="auto">
<a href="https://github.com/fleetbase/fleetbase/blob/main/LICENSE.md"><img src="https://img.shields.io/github/license/fleetbase/fleetbase" alt="License"></a>
<a href="https://github.com/fleetbase/fleetbase/releases"><img src="https://img.shields.io/github/v/release/fleetbase/fleetbase" alt="Latest Release"></a>
+ <a href="https://codecov.io/gh/fleetbase/fleetbase"><img src="https://codecov.io/gh/fleetbase/fleetbase/branch/main/graph/badge.svg" alt="Coverage"></a>
<a href="https://github.com/fleetbase/fleetbase/stargazers"><img src="https://img.shields.io/github/stars/fleetbase/fleetbase?style=social" alt="GitHub Stars"></a>
<a href="https://discord.gg/V7RVWRQ2Wm"><img src="https://img.shields.io/discord/699834923032248430?logo=discord&label=Discord" alt="Discord"></a>
<a href="https://github.com/fleetbase/fleetbase/issues"><img src="https://img.shields.io/github/issues/fleetbase/fleetbase" alt="GitHub Issues"></a>