Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 25, 2023
1 parent 964ec2c commit 71cd5fc
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 71cd5fc

Please sign in to comment.