Skip to content

Commit d506375

Browse files
committed
display badge in readme
1 parent 7e59a1a commit d506375

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ jobs:
9595
# gist_id: 82b48469578014fc69d5aa64ef0a443f
9696
# gist_file_name: go-lanai-${{ github.head_ref || inputs.branch || 'main' }}-coverage.md
9797
# file_path: code-coverage-results.md
98+
- name: "Collect Reports"
99+
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
100+
run: |
101+
cp code-coverage-results.md dist/
98102
- name: Upload Badges and Reports
99103
if: ${{ !cancelled() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
100104
uses: peaceiris/actions-gh-pages@v4
@@ -108,14 +112,5 @@ jobs:
108112
keep_files: true
109113
commit_message: "Upload badges & reports from CI - ${{ github.job }}"
110114

111-
# - name: Upload Badges and Reports
112-
# if: ${{ !cancelled() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
113-
# uses: JamesIves/github-pages-deploy-action@v4
114-
# with:
115-
# branch: gh-pages
116-
# folder: dist
117-
# target-folder: pages
118-
# clean: false
119-
# commit-message: "Upload badges & reports from CI
120115

121116

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# go-lanai
22

33
![Tests](https://github.com/cisco-open/go-lanai/actions/workflows/ci.yml/badge.svg?branch=main)
4-
[![Coverage](https://gist.githubusercontent.com/stonedu1011/82b48469578014fc69d5aa64ef0a443f/raw/go-lanai-main-coverage.svg)](https://gist.githubusercontent.com/stonedu1011/82b48469578014fc69d5aa64ef0a443f/#file-go-lanai-main-coverage-md)
4+
[![Coverage](https://cisco-open.github.io/go-lanai/pages/coverage-badge.svg)](https://cisco-open.github.io/go-lanai/pages/code-coverage-results.md)
55
[![Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://opensource.org/license/apache-2-0/)
66

77
go-lanai is an application frameworks and a set of modules that make writing applications easy. It provides

0 commit comments

Comments
 (0)