ci: Update node coverage badge to work without games.txt (#156)

* ci: Update node coverage badge to work without games.txt

Fixes #155 using a new node script that should be more robust than the
old shell script.

* ci: Change badge cron time to less common time

By doing at a less common time we should reduce action time usage as
the runners will be under less load.

* Add/Update badge

* ci: Improve node-badge script

Co-Authored-By: CosminPerRam <cosmin.p@live.com>

* ci: Run node badge action if script changes

* ci: Update node badge path for workspaces

* ci: Revert loading games from index in node badge script

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: CosminPerRam <cosmin.p@live.com>
This commit is contained in:
Tom 2023-11-23 09:48:24 +00:00 committed by GitHub
parent 3f1164ef5d
commit 0c7dbe76d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 29 deletions

View file

@ -1,20 +1,20 @@
<svg width="163.6" height="20" viewBox="0 0 1636 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Node game coverage: 13%">
<title>Node game coverage: 13%</title>
<svg width="181.6" height="20" viewBox="0 0 1816 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Node game coverage: 14.06%">
<title>Node game coverage: 14.06%</title>
<linearGradient id="a" x2="0" y2="100%">
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="m"><rect width="1636" height="200" rx="30" fill="#FFF"/></mask>
<mask id="m"><rect width="1816" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#m)">
<rect width="1276" height="200" fill="#555"/>
<rect width="360" height="200" fill="#0f80c1" x="1276"/>
<rect width="1636" height="200" fill="url(#a)"/>
<rect width="540" height="200" fill="#0f80c1" x="1276"/>
<rect width="1816" height="200" fill="url(#a)"/>
</g>
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="60" y="148" textLength="1176" fill="#000" opacity="0.25">Node game coverage</text>
<text x="50" y="138" textLength="1176">Node game coverage</text>
<text x="1331" y="148" textLength="260" fill="#000" opacity="0.25">13%</text>
<text x="1321" y="138" textLength="260">13%</text>
<text x="1331" y="148" textLength="440" fill="#000" opacity="0.25">14.06%</text>
<text x="1321" y="138" textLength="440">14.06%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Before After
Before After