Skip to content

Commit 7a11120

Browse files
committed
CI update: enable jekyll coverage report
1 parent d9929a0 commit 7a11120

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ jobs:
8282
- name: "Collect Reports"
8383
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
8484
run: |
85-
cp -rfp code-coverage-results.md dist/code-coverage-results.md
85+
cat > dist/code-coverage-results.md <<EOF
86+
---
87+
layout: report
88+
---
89+
90+
EOF
91+
cat code-coverage-results.md >> dist/code-coverage-results.md
92+
8693
- name: "Upload Badges and Reports"
8794
if: ${{ !cancelled() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
8895
uses: peaceiris/actions-gh-pages@v4

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ vendor/
3333

3434

3535
# Codegen
36-
output
36+
output
37+
38+
# gh-pages jekyll
39+
Gemfile
40+
Gemfile.*
41+
_site/**

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://cisco-open.github.io/go-lanai/reports/main/coverage-badge.svg)](https://cisco-open.github.io/go-lanai/reports/main/code-coverage-results.md)
4+
[![Coverage](https://cisco-open.github.io/go-lanai/reports/main/coverage-badge.svg)](https://cisco-open.github.io/go-lanai/reports/main/code-coverage-results.html)
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)