Skip to content

Commit d9929a0

Browse files
committed
CI workflow update
1 parent d506375 commit d9929a0

File tree

2 files changed

+5
-21
lines changed

2 files changed

+5
-21
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ on:
3535
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
3636
jobs:
3737
main:
38-
name: Test, Analyze Code & Report
38+
name: "Test, Analyze Code & Report"
3939
runs-on: ubuntu-latest
4040
permissions:
4141
contents: write
@@ -79,34 +79,18 @@ jobs:
7979
format: markdown
8080
output: both
8181
thresholds: "${{ inputs.low_cov }} ${{ inputs.high_cov }}"
82-
# - name: "Upload Badges"
83-
# if: ${{ !cancelled() && github.event_name != 'pull_request' }}
84-
# uses: exuanbo/actions-deploy-gist@v1
85-
# with:
86-
# token: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }}
87-
# gist_id: 82b48469578014fc69d5aa64ef0a443f
88-
# gist_file_name: go-lanai-${{ github.head_ref || inputs.branch || 'main' }}-coverage.svg
89-
# file_path: dist/coverage-badge.svg
90-
# - name: "Upload Reports"
91-
# if: ${{ !cancelled() && github.event_name != 'pull_request' }}
92-
# uses: exuanbo/actions-deploy-gist@v1
93-
# with:
94-
# token: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }}
95-
# gist_id: 82b48469578014fc69d5aa64ef0a443f
96-
# gist_file_name: go-lanai-${{ github.head_ref || inputs.branch || 'main' }}-coverage.md
97-
# file_path: code-coverage-results.md
9882
- name: "Collect Reports"
9983
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
10084
run: |
101-
cp code-coverage-results.md dist/
102-
- name: Upload Badges and Reports
85+
cp -rfp code-coverage-results.md dist/code-coverage-results.md
86+
- name: "Upload Badges and Reports"
10387
if: ${{ !cancelled() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
10488
uses: peaceiris/actions-gh-pages@v4
10589
with:
10690
github_token: ${{ secrets.GITHUB_TOKEN }}
10791
publish_branch: gh-pages
10892
publish_dir: dist
109-
destination_dir: pages
93+
destination_dir: reports/${{ github.ref_name }}
11094
exclude_assets: '.github,coverage.out,tests.json'
11195
enable_jekyll: true
11296
keep_files: true

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/pages/coverage-badge.svg)](https://cisco-open.github.io/go-lanai/pages/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.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)