-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
964ec2c
commit 71cd5fc
Showing
1 changed file
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,28 @@ jobs: | |
- run: ls -al | ||
- run: ls -al coverage | ||
|
||
|
||
- name: Create idoc config | ||
run: | | ||
cat > idoc.yml << EOF | ||
site: "Coverage Badges {{version}}" | ||
menus: | ||
Home: index.html | ||
footer: | | ||
<a href="https://jaywcjlove.github.io/create-tag-action" target="_blank">Create Tag</a> • | ||
<a href="https://jaywcjlove.github.io/github-action-contributors" target="_blank">Contributors</a> • | ||
<a href="https://jaywcjlove.github.io/github-action-read-file" target="_blank">Read File Content</a> • | ||
<a href="./index.html" target="_blank">Generated Badges</a> | ||
<br /> | ||
Released under the MIT License. Copyright © {{idocYear}} Kenny Wong<br /> | ||
Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v{{idocVersion}} | ||
EOF | ||
- run: npm install [email protected] -g | ||
- run: idoc | ||
- run: cp -rp coverage/lcov-report dist | ||
|
||
- run: cat coverage/coverage-summary.json | ||
|
||
- name: Create Coverage Badges | ||
|
@@ -37,27 +59,27 @@ jobs: | |
style: flat | ||
label: flat style | ||
source: coverage/coverage-summary.json | ||
output: coverage/badges-flat.svg | ||
output: dist/badges-flat.svg | ||
|
||
- name: Create Coverage Badges | ||
uses: jaywcjlove/coverage-badges-cli@main | ||
id: coverage_badges | ||
with: | ||
label: classic style | ||
source: coverage/coverage-summary.json | ||
output: coverage/badges-classic.svg | ||
output: dist/badges-classic.svg | ||
|
||
- name: Generate Contributors Images | ||
uses: jaywcjlove/github-action-contributors@main | ||
with: | ||
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\]) | ||
output: coverage/CONTRIBUTORS.svg | ||
output: dist/CONTRIBUTORS.svg | ||
avatarSize: 42 | ||
|
||
- run: echo '${{ steps.coverage_badges.outputs.svg }}' | ||
|
||
- run: npm i markdown-to-html-cli -g | ||
- run: markdown-to-html --output coverage/index.html --github-corners https://github.com/jaywcjlove/coverage-badges-cli | ||
# - run: npm i markdown-to-html-cli -g | ||
# - run: markdown-to-html --output coverage/index.html --github-corners https://github.com/jaywcjlove/coverage-badges-cli | ||
|
||
- name: Create Tag | ||
id: create_tag | ||
|